Skip to content

Add support to set additionalProperties with boolean values #2461

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

Open
yuting-qin opened this issue Sep 29, 2017 · 1 comment
Open

Add support to set additionalProperties with boolean values #2461

yuting-qin opened this issue Sep 29, 2017 · 1 comment

Comments

@yuting-qin
Copy link

The swagger 3.0 spec state:

  • additionalProperties - Value can be boolean or object. Inline or referenced schema MUST be of a Schema Objectand not a standard JSON Schema.

However there is not yet a way to set it with boolean value via swagger core.

See details from this thread:https://groups.google.com/forum/#!topic/swagger-swaggersocket/1J5KznDibzA

gracekarina added a commit that referenced this issue Dec 27, 2017
gracekarina added a commit to swagger-api/swagger-parser that referenced this issue Dec 29, 2017
gracekarina added a commit to swagger-api/swagger-parser that referenced this issue Dec 30, 2017
gracekarina added a commit to swagger-api/swagger-parser that referenced this issue Jan 10, 2018
frantuma added a commit that referenced this issue Jan 15, 2018
refs #2461 - additionalProperties as Boolean or Schema
@christopher-cudennec
Copy link
Contributor

Are you planning to support additionalProperties (as boolean) for your @Schema annotation?
I'd like to document that my class accepts additional properties that will be stored using @JsonAnyGetter / @JsonAnySetter.

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

No branches or pull requests

3 participants