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

Missing "properties" attribute in @Schema annotation #3633

Closed
dmaio opened this issue Jul 14, 2020 · 2 comments
Closed

Missing "properties" attribute in @Schema annotation #3633

dmaio opened this issue Jul 14, 2020 · 2 comments

Comments

@dmaio
Copy link

dmaio commented Jul 14, 2020

I'd like to define some properties as mentionned in https://swagger.io/docs/specification/data-models/data-types/#object

type: object
properties:
  myprop:
    type: string

The Schema class has the Map<String, Schema> properties attribute but the annotation doesn't support it.

@andreaangiolillo
Copy link

Do we have any updates on this?

@frantuma
Copy link
Member

#4129 introduces support to define Schema properties via annotations. Please see this and this examples for usage scenarios.

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

3 participants