We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As discussed previously in #10 (comment).
When building the entire Swagger spec we can't know for sure all needed schema definitions for a spec to be complete. Here's an example:
Swagger
data Color = White | Black deriving (Generic, ToSchema) data Dog = Dog { nick :: String, color :: Color } deriving (Generic, ToSchema) data Person = Person { name :: String, dog :: Dog } deriving (Generic, ToSchema) type PersonAPI = "person" :> ReqBody Person :> Post ()
How would we know to add Dog and Color to auto-generated swagger spec?
Dog
Color
The solution I think should be for ToSchema to generate also a list of used definitions.
ToSchema
The text was updated successfully, but these errors were encountered:
Merge pull request #19 from GetShopTV/definitions-#13
bb33aeb
Annotate NamedSchema with used Definitions
No branches or pull requests
As discussed previously in #10 (comment).
When building the entire
Swagger
spec we can't know for sure all needed schema definitions for a spec to be complete. Here's an example:How would we know to add
Dog
andColor
to auto-generated swagger spec?The solution I think should be for
ToSchema
to generate also a list of used definitions.The text was updated successfully, but these errors were encountered: