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
The generated code has the incorrect package for InputStream. Instaead of being java.io.InputStream it is referencing com.reapit.model.InputStream which does not exist.
This seems to be because the endpoint is defined as: "responses": { "200": { "description": "Success", "schema": { "format": "binary", "type": "string" } },
which is correct per the OpenAPI spec, but the generator is not using java.io.InputStream for it.
<micronaut.openapi.definition>src/openapi/reapit.json</micronaut.openapi.definition> <micronaut.openapi.api.package.name>com.reapit.api</micronaut.openapi.api.package.name> <micronaut.openapi.model.package.name>com.reapit.model</micronaut.openapi.model.package.name> in 4.2
mvn compile generates an error
Environment Information
MacOS X 13.6
JDK 17.0.7
Example Application
No response
Version
4.1.2
The text was updated successfully, but these errors were encountered:
Expected Behavior
When generating classes for https://platform.reapit.cloud/docs/swagger/agencyCloud_swagger.json into package com.reapit.api and com.reapit.model I expect the generated class DocumentsAPI.java to have the method:
Actual Behaviour
The generated code has the incorrect package for InputStream. Instaead of being java.io.InputStream it is referencing com.reapit.model.InputStream which does not exist.
This seems to be because the endpoint is defined as:
"responses": { "200": { "description": "Success", "schema": { "format": "binary", "type": "string" } },
which is correct per the OpenAPI spec, but the generator is not using java.io.InputStream for it.
Steps To Reproduce
<micronaut.openapi.definition>src/openapi/reapit.json</micronaut.openapi.definition> <micronaut.openapi.api.package.name>com.reapit.api</micronaut.openapi.api.package.name> <micronaut.openapi.model.package.name>com.reapit.model</micronaut.openapi.model.package.name>
in 4.2Environment Information
MacOS X 13.6
JDK 17.0.7
Example Application
No response
Version
4.1.2
The text was updated successfully, but these errors were encountered: