Comments (12)
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.
Awesome, thanks!
from nswag.
Is it working for you?
from nswag.
Hi Rico,
I am having the following similar issue in the client files (NSwag 12.3.1.0) :
System.Threading.Tasks.Task<Envelope
1OfOfList1OfOfAgenceDtoAndCoreAnd_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.
Was this working before?
from nswag.
Yes it was. This error happens since 2-3 weeks
from nswag.
Did you enable strong naming on your assembly in this period?
from nswag.
No. I did some code refactoring, just normal things.
from nswag.
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.
I might be related to c.CustomSchemaIds(x => x.FullName);
First error occurred after I added this
from nswag.
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.
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)
- NSwag generating request string[] headers incorrectly
- Is there a way to make nswag behave the same as the swagger export from swaggerhub?
- Generated class names cause compiler warning. HOT 1
- different client code in docker vs in rider... HOT 2
- Why is NSwag starting my app? HOT 2
- jsonignore attributes is not showing in latest nswag 14.0.7 version generated code HOT 6
- [C# client generation] Improper handling of 204 status code
- CS0649 due to _baseUrl instead of BaseUrl from 14.0.2 => 14.0.[3-7] HOT 3
- NSwag generated C# clients fail to set Content-Language header as it must be set on Content headers
- CSharpClient code generator issues HOT 1
- Code not generated when SubProperty and/or Enum
- Vulnerability in deps chain due to Fluid.Core < 2.8.0
- nswag not generating typescript file my API project swagger UI working fine
- I found a problem when using NSwag and Odata
- Sort keys in OpenAPI specifications
- NSwag C# DTO generation fails on object arrays with the characters " - "
- UseGetBaseUrlMethod not working for openapi2tsclient
- NSwag 14.0.7 starts hundreds of processes HOT 1
- NSwag doesnt show endpoints parameters data types HOT 1
- Could not find the JSON path of a referenced schema HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nswag.