-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] schema mappings are not applied to parameters
schemas
#12885
Comments
Looks like a symptom of this issue. With the schema below I am getting different outputs pre and post 6.0.0
Notice that
This impacts for example |
can you please try the latest master? there were fixes related to how schema mapping works in the parameters. |
It looks like this is indeed fixed with 6.1.0. |
Bug Report Checklist
Description
Schema mappings don't seem to be applied to schemas referenced from an endpoint's
parameters
. With this:the generated code still uses a raw
Integer
rather thancom.example.Limit
:In contrast,
--schema-mappings=Pet=com.example.Pet
works as expected:openapi-generator version
6.0.1
OpenAPI declaration file content or url
This is a modified version of the pet store example, with the limit query parameter extracted into a separate schema:
Related issues/PRs
#12600
The text was updated successfully, but these errors were encountered: