play-swagger
play-swagger copied to clipboard
Schemas not generated for v3
Following the directions in the readme i have
- Update the routes documentation
# schema:
# $ref: ' #/components/schemas/v1.models.Communication'
- Set v3 = true in my build.sbt
swaggerV3 := true,
swaggerDomainNameSpaces := Seq("v1.models")
- Updated my swagger.json to use openapi 3
"openapi": "3.0.0",
"info": {
"title": " ...",
"description": "..."
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
]
}
however the generated swagger.json contains
"components":{"schemas":{}}
I have the same issue
@benshaw @robertofabrizi have you solved the issue? From my experience, the models are generated as long as they're in use. How does your routes config looks like?
@benshaw @robertofabrizi @karol-wojcik-bg We are currently reviewing it. It may take some time, but we plan to address it.