Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Default value for parameters aren't working in OpenAPI v3 #2227
Currently the swaggerToCSharpController doesn't correctly generate default values for parameters. I've been debugging NSwag locally and while i've struggled to find the root cause i've noticed a few things that might be relevant:
I've included an example spec below.
For OpenAPI 3 it's
Maybe we should add new property to
And use that everywhere we generate something...