Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aneeshafedo committed Aug 9, 2023
1 parent 6261061 commit 4817f44
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,12 @@ private Optional<ApiResponses> getApiResponsesForArrayTypes(OperationAdaptor ope
if (mimeType.isEmpty()) {
return Optional.empty();
}
arraySchema.setItems(openApiSchema);
mediaType.setSchema(arraySchema);
if (type.equals(BYTE_ARRAY)) {
mediaType.setSchema(openApiSchema);
} else {
arraySchema.setItems(openApiSchema);
mediaType.setSchema(arraySchema);
}
apiResponse.description(description);
apiResponse.content(new Content().addMediaType(mimeType.get(), mediaType));
apiResponses.put(statusCode, apiResponse);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ paths:
application/octet-stream:
schema:
type: string
format: uuid
format: byte
responses:
"200":
description: Ok
Expand Down

0 comments on commit 4817f44

Please sign in to comment.