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

Do not set default type string for composed schema. #3210

Merged
merged 3 commits into from
May 25, 2019

Conversation

UKreher
Copy link

@UKreher UKreher commented May 24, 2019

A composed schema usually has sub schemas. So there is no need to set the default type "string" unless explicitly set. Setting it may lead to an unexpected semantic of the composed schema.

@frantuma
Copy link
Member

Thanks for the PR! can you just update the expected test spec in io.swagger.v3.jaxrs2.ReaderTest.testGetResponsesWithComposition (which was indeed not good as it had string as type for the composed schema)?

thanks!

@UKreher UKreher force-pushed the noStringDefForComposed branch from 81b544a to abdd959 Compare May 24, 2019 14:12
@UKreher
Copy link
Author

UKreher commented May 24, 2019

Sure, now that I know where to find the test. ;-)

Thank you!

@frantuma frantuma merged commit 39601f4 into swagger-api:master May 25, 2019
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.

2 participants