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
Using the following schema, the openapi-generator-maven-plugin fails to recognize the model in the requestBody schema, and instead tries to import and use a model named UNKNOWN_BASE_TYPE. This only happens when I use a ref to the requestBody and if the requestBody schema is of type object.
Description
Using the following schema, the openapi-generator-maven-plugin fails to recognize the model in the requestBody schema, and instead tries to import and use a model named
UNKNOWN_BASE_TYPE
. This only happens when I use a ref to the requestBody and if the requestBody schema is of type object.openapi-generator version
5.2.1
5.1.0
4.3.1
OpenAPI declaration file content or URL
Here is a minimum spec that reproduces the issue.
However note that this spec and this other spec both work.
Command line used for generation
This occurred using the openapi-generator-maven-plugin. See example pom here for configurations.
Steps to reproduce
mvn clean install
from the pom directoryExpected Results:
The command should execute successfully and generate default API models, interfaces, and delegate.
Actual Results:
Related issues/PRs
Suggest a fix/enhancement
The text was updated successfully, but these errors were encountered: