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
openapi: 3.0.0info:
version: 1.7.0title: my apiservers:
- url: http://localhost:8080description: Localhosttags:
- name: queriesdescription: Generic query apipaths:
/rest/v1/queries:
post:
tags:
- queriessummary: generic queriesoperationId: postQueryrequestBody:
required: falsecontent:
application/json:
schema:
$ref: "#/components/schemas/QueryParameters"responses:
'200':
description: The table datacontent:
application/json:
schema:
type: stringcomponents:
schemas:
QueryParameters:
type: objectadditionalProperties: type: string //don't work
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:
[ERROR] /api/QueriesApi.java:[70,68] cannotfindsymbol
[ERROR] symbol: classQueryParameters
[ERROR] location: classapi.QueriesApi
Related issues/PRs
cc/ @martin-mfg@wing328
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 resttemplateSteps to reproduce
Generate the provided api-specification using the provided configuration.
The generator logs:
Related issues/PRs
cc/ @martin-mfg@wing328