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

Use type: string with format: binary for InputStream and byte[] #871

Merged

Conversation

MikeEdgar
Copy link
Member

Looking at #857, I realized that we are not supporting the binary string format (https://swagger.io/specification/#data-types). @phillip-kruger, does this seem reasonable? The change is to default InputStream and byte[] to be strings of format binary. As mentioned in that issue, I'm don't think that File can be used for JAX-RS.

phillip-kruger
phillip-kruger previously approved these changes Aug 4, 2021
Copy link
Member

@phillip-kruger phillip-kruger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@phillip-kruger phillip-kruger linked an issue Aug 4, 2021 that may be closed by this pull request
@phillip-kruger phillip-kruger added this to the 2.0.28 milestone Aug 4, 2021
@MikeEdgar MikeEdgar modified the milestones: 2.0.28, 2.1.10 Aug 4, 2021
@MikeEdgar MikeEdgar force-pushed the 857_binary_format_string_defaults branch 2 times, most recently from 1e2e740 to eeddf04 Compare August 4, 2021 10:42
@MikeEdgar MikeEdgar force-pushed the 857_binary_format_string_defaults branch from eeddf04 to 914210c Compare August 5, 2021 00:03
@MikeEdgar MikeEdgar marked this pull request as ready for review August 5, 2021 00:04
@MikeEdgar
Copy link
Member Author

@phillip-kruger - added another commit with a change to skip the default type attributes if a type properties has been given in the @Schema annotation.

@phillip-kruger phillip-kruger merged commit 8e23ed7 into smallrye:main Aug 5, 2021
@MikeEdgar MikeEdgar deleted the 857_binary_format_string_defaults branch August 8, 2021 10:30
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.

How to post list of files?
2 participants