play-swagger icon indicating copy to clipboard operation
play-swagger copied to clipboard

Schemas not generated for v3

Open benshaw opened this issue 5 years ago • 3 comments

Following the directions in the readme i have

  1. Update the routes documentation
#      schema: 
#        $ref: ' #/components/schemas/v1.models.Communication'
  1. Set v3 = true in my build.sbt
    swaggerV3 := true,
    swaggerDomainNameSpaces := Seq("v1.models")
  1. 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":{}}

benshaw avatar Jul 19 '19 17:07 benshaw

I have the same issue

robertofabrizi avatar Jul 06 '20 12:07 robertofabrizi

@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?

karol-wojcik-bg avatar Oct 26 '20 09:10 karol-wojcik-bg

@benshaw @robertofabrizi @karol-wojcik-bg We are currently reviewing it. It may take some time, but we plan to address it.

Javakky-pxv avatar Jul 21 '23 03:07 Javakky-pxv