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

feat: swagger-2 additionalProperties support #355

Merged
merged 1 commit into from
May 27, 2023

Conversation

CarstenWickner
Copy link
Member

Introduction support for the @Schema(additionalProperties = ...) annotation attribute.

  • only considering it on a type definition – not on a member (i.e., field or method) as that may cause conflicts
  • additional exception: when there is also an external @Schema(ref = "..."), the additionalProperties attribute is not only ignored but explicitly set to allowed (even if otherwise forbidden by default).

Closes #352.

@CarstenWickner CarstenWickner merged commit 246449e into main May 27, 2023
@CarstenWickner CarstenWickner deleted the swagger2-additional-properties branch May 27, 2023 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[Feature request] FORBIDDEN_ADDITIONAL_PROPERTIES_BY_DEFAULT, additionalProperties and Swagger2 module
1 participant