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
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
When a schema's field is defined by using a $ref schema; referenced schema properties (e.g. description) are not added
openapi-generator version
Working with .7.10.0 ✅
Break with 7.11.0 🔴
OpenAPI declaration file content or url
openapi: 3.0.3info:
title: API Overview version: "v1"description: descriptionpaths:
"/path":
post:
operationId: postrequestBody:
$ref: '#/components/requestBodies/requestBody'responses:
"200":
description: no responsecomponents:
requestBodies:
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/requestSchema'schemas:
requestSchema:
type: objectproperties:
directField:
type: stringdescription: value field description from 'requestSchema' schemadeferencedField:
$ref: '#/components/schemas/deferencedSchema'deferencedSchema:
type: objectallOf:
- $ref: '#/components/schemas/lowLevelSchema'description: Description from 'deferencedSchema' schemalowLevelSchema:
type: stringdescription: Description from 'lowLevelSchema' schema
Generation Details
v7.10.0 generation
Note the description content is correctly extracted from deferencedSchema within java comments : * Description from 'deferencedSchema' schema
Bug Report Checklist
Description
When a schema's field is defined by using a $ref schema; referenced schema properties (e.g.
description
) are not addedopenapi-generator version
OpenAPI declaration file content or url
Generation Details
Note the
description
content is correctly extracted fromdeferencedSchema
within java comments :* Description from 'deferencedSchema' schema
Note the
description
content no longer contains the description (defaulted to field name):* Get deferencedField
Steps to reproduce
Related issues/PRs
Suggest a fix
The text was updated successfully, but these errors were encountered: