Required flag generates in swagger file but not displayed
See original GitHub issueThere doesn’t appear to be consistency as to how NSwag/ReDoc displays the “Required” flag. This is what is displayed in ReDoc:
And this is what is generated in the swagger file:
{ "type": "string", "name": "firstName", "in": "query", "required": true, "x-nullable": true }, { "type": "string", "name": "lastName", "in": "query", "required": true, "x-nullable": true },
I would expect to see the Required displayed in red as shown below:
Possibly related to issue #2391
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Swagger editor how to specify which fields in request body ...
Switch to the "Schema" tab to see the schema documentation, that's where the field descriptions (including the required flag) are displayed. – ...
Read more >Describing Request Body
requestBody consists of the content object, an optional Markdown-formatted description , and an optional required flag ( false by default). content lists the ......
Read more >Hide a Request Field in Swagger API
A quick and practical guide to hiding a request field in Swagger UI.
Read more >Show only specific APIs on Swagger — Asp.Net Core
In this article, I explain how to use Document Filters on Swagger in order to control the endpoints that are being shown on...
Read more >Generate a server from a swagger spec
A generated server uses no reflection except for an enum validation and the required validation. The server builds all the necessary plans and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Maybe you should create an issue here: https://github.com/Redocly/redoc
I created an issue and it was suggested I was running an older version of ReDoc.
How do I determine the version that NSwag references? I can’t find anywhere that it is/can be set.