You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.
Describe the bug
Following API annotation is being generated for binary file responses:
As a result, following Java / Spring classes are being exposed as Swagger UI API models:
To reproduce:
API definition
Example api.yml
Original API definition is more robust, yet the relevant part is the GET endpoint returning file as
application/octet-stream
.Gradle task:
Json config:
Expected behavior:
Core Spring/Java classes should not be default response types for binary data in generated code and should not be exposed.
Environment
Plugin version: 2.18.2
OpenAPI Codegen version: "org.openapitools:openapi-generator-cli:4.3.1"
Gradle version: 6.4.1
Kotlin version: 1.3.71
JVM: 11.0.8 (Amazon.com Inc. 11.0.8+10-LTS)
OS: Windows 10
The text was updated successfully, but these errors were encountered: