We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This PR fixed this bug caused by this PR.
Additionally, when additionalProperties is typed, the error is maintained.
7.1.0 and higher
openapi: 3.0.0 info: version: 1.7.0 title: my api servers: - url: http://localhost:8080 description: Localhost tags: - name: queries description: Generic query api paths: /rest/v1/queries: post: tags: - queries summary: generic queries operationId: postQuery requestBody: required: false content: application/json: schema: $ref: "#/components/schemas/QueryParameters" responses: '200': description: The table data content: application/json: schema: type: string components: schemas: QueryParameters: type: object additionalProperties: type: string //don't work
java -jar openapi-generator-cli.jar generate -g java -i openapi-rest.yml -o openapi --library resttemplate
Generate the provided api-specification using the provided configuration.
The generator logs:
[ERROR] /api/QueriesApi.java:[70,68] cannot find symbol [ERROR] symbol: class QueryParameters [ERROR] location: class api.QueriesApi
cc/ @martin-mfg @wing328
The text was updated successfully, but these errors were encountered:
I will have a look. 👍
Until a fix is merged, you can set generateAliasAsModel to true as a workaround.
generateAliasAsModel
true
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Bug Report Checklist
Description
This PR fixed this bug caused by this PR.
Additionally, when additionalProperties is typed, the error is maintained.
openapi-generator version
7.1.0 and higher
OpenAPI declaration file content or url
Generation Details
java -jar openapi-generator-cli.jar generate -g java -i openapi-rest.yml -o openapi --library resttemplate
Steps to reproduce
Generate the provided api-specification using the provided configuration.
The generator logs:
Related issues/PRs
cc/ @martin-mfg @wing328
The text was updated successfully, but these errors were encountered: