-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Closed
Labels
Description
Description
When referencing responses with inline type in operations, the generator used to generate a model with distinct name. With version 7.14 a model with the the generic name InlineObject gets generated.
openapi-generator version
v.7.14.x
OpenAPI declaration file content or url
paths:
/referenced-response-with-inline-schema:
get:
operationId: getReferencedResponseWithInlineSchema
tags:
- Responses
responses:
'200':
$ref: '#/components/responses/ReferencedResponseWithInlineSchema'
components:
responses:
ReferencedResponseWithInlineSchema:
description: ReferencedResponseWithInlineSchema
content:
application/json:
schema:
type: object
properties:
name:
type: stringGeneration Details
Steps to reproduce
Related issues/PRs
swagger-api/swagger-parser#2127
Suggest a fix
Swagger-parser 2.1.23 introduced a new ParseOptions-API.
swagger-api/swagger-parser#2127
Reactions are currently unavailable