Swagger 2.0 ModelConverter support for required/not required items
See original GitHub issueWith the Required field having moved to the parent property (example), I’m wondering how to get swagger-scala-module ModelConverter to be able to control which items in a case class are marked as required. The resolve
method doesn’t appear to expose the parent property. Is there another way to do this, or do we need to change the ModelConverter resolve to allow access to the parent property?
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
OpenAPI Specification - Version 2.0 - Swagger
Version 2.0 specification defines a set of files required to describe an API. These files can then be used by the Swagger-UI project...
Read more >Describing Parameters - Swagger
Query parameters only support primitive types. You can have an array , but the items must be a primitive value type. Objects are...
Read more >Basic Structure - Swagger
A Swagger version defines the overall structure of an API specification – what you can document and how you document it. swagger: "2.0"....
Read more >Describing Parameters - Swagger
In OpenAPI, a path parameter is defined using in: path . The parameter name must be the same as specified in the path....
Read more >Supported JSON Schema Keywords - Swagger
The item schema must be an OpenAPI schema and not a standard JSON Schema. properties – individual property definitions must follow OpenAPI schema...
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 FreeTop 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
Top GitHub Comments
@pjfanning not sure if this helps in all cases, however #2909 adds propName to annotatedType, try to give it a go.
Closing because @frantuma 's has helped me to progress my scala solution