Skip to content

How do I generate OpenAPI to upload two binary files? It worked with Swagger annotations. #1951

Answered by MikeEdgar
cristalp asked this question in Q&A
Discussion options

You must be logged in to vote

To sum up, this is what's required, correct?

@Schema(description = "...", format = "binary", type = SchemaType.STRING, implementation = String.class)

That's correct. If you want to simply it further, the type is superfluous when the implementation is String

@Schema(description = "...", format = "binary", implementation = String.class)

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
4 replies
@cristalp
Comment options

@MikeEdgar
Comment options

@cristalp
Comment options

@MikeEdgar
Comment options

Comment options

You must be logged in to vote
4 replies
@MikeEdgar
Comment options

@cristalp
Comment options

@MikeEdgar
Comment options

Answer selected by cristalp
@cristalp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants