Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schemas not generated for v3 #274

Open
benshaw opened this issue Jul 19, 2019 · 3 comments
Open

Schemas not generated for v3 #274

benshaw opened this issue Jul 19, 2019 · 3 comments

Comments

@benshaw
Copy link

benshaw commented Jul 19, 2019

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":{}}
@robertofabrizi
Copy link

I have the same issue

@karol-wojcik-bg
Copy link

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

@Javakky-pxv
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants