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

Issue 4041 schema json object defaultValue #4063

Merged
merged 2 commits into from
Dec 10, 2021

Conversation

JasonVoss
Copy link

fixes #4041

changes the default value for schema to serialize to object if this is possible, otherwise returns string

Note: this issue title is asking about the swagger-maven-plugin. The issue is not in this module, it is in swagger-core. The issue can be re-created using the swaggger-maven-plugin, but that is to say, the swagger-maven-plugin is just one specific way to invoke the model resolution in swagger-core where this issue happens.

@JasonVoss JasonVoss changed the title schema json object defaultValue issue 4041 schema json object defaultValue Dec 10, 2021
@JasonVoss JasonVoss changed the title issue 4041 schema json object defaultValue Issue 4041 schema json object defaultValue Dec 10, 2021
@frantuma frantuma merged commit 375b2f5 into swagger-api:master Dec 10, 2021
@frantuma
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

swagger-maven-plugin not generating object for @Schema defaultValue
2 participants