Code Monkey home page Code Monkey logo

Comments (12)

RicoSuter avatar RicoSuter commented on May 10, 2024

I think this OneOf is a good idea, but not very C#-like and needs lot of generated code... I currently fixed it with the exception approach...

Fixed in v1.25

from nswag.

mcintyre321 avatar mcintyre321 commented on May 10, 2024

Awesome, thanks!

from nswag.

RicoSuter avatar RicoSuter commented on May 10, 2024

Is it working for you?

from nswag.

fguemara avatar fguemara commented on May 10, 2024

Hi Rico,

I am having the following similar issue in the client files (NSwag 12.3.1.0) :

System.Threading.Tasks.Task<Envelope1OfOfList1OfOfAgenceDtoAndCoreAnd_0AndCulture=neutralAndPublicKeyToken=nullAndCoreLibAnd_0AndCulture=neutralAndPublicKeyToken=7cec85d7bea7798e> GetAgencesAsync(bool? inclureApporteurs, bool? agenceMisc)

instead of
System.Threading.Tasks.Task<EnvelopeOfListOfAgenceDto> GetAgencesAsync(bool? inclureApporteurs, bool? agenceMisc)

very similar issue with the contrat files.

Many thanks for feedback to resolve this

from nswag.

RicoSuter avatar RicoSuter commented on May 10, 2024

Was this working before?

from nswag.

fguemara avatar fguemara commented on May 10, 2024

Yes it was. This error happens since 2-3 weeks

from nswag.

RicoSuter avatar RicoSuter commented on May 10, 2024

Did you enable strong naming on your assembly in this period?

from nswag.

fguemara avatar fguemara commented on May 10, 2024

No. I did some code refactoring, just normal things.

from nswag.

fguemara avatar fguemara commented on May 10, 2024

Rico, Is there a quick fix or work around ? I need to go ahead today. Many thanks for any tip you could provide.

from nswag.

fguemara avatar fguemara commented on May 10, 2024

I might be related to c.CustomSchemaIds(x => x.FullName);
First error occurred after I added this

from nswag.

RicoSuter avatar RicoSuter commented on May 10, 2024

Yep this seems to be the problem...

And it seems that you use Swashbuckle and not nswag to generate the specs, so we cannot do much to fix this in nswag

from nswag.

fguemara avatar fguemara commented on May 10, 2024

Solved via the Swashbuckle thread

Add an implementation to align Swashbuckle output with the NSwag Studio naming convention TypeOfType

If this can help. Cheers

from nswag.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.