-
Notifications
You must be signed in to change notification settings - Fork 281
Closed
Description
Describe the bug
When serialize OpenApi structure with multiple response schemes with different http codes and same models with InlineLocalReferences = true
To Reproduce
it inlines only first model, other models are replaced with refs
/sample:
post:
responses:
'200':
description: Success
schema:
type: array
items:
$ref: '#/definitions/PostRespDto'
'202':
description: Accepted
schema:
$ref: '#/definitions/PostRespDto'
with inlining will be
/sample:
post:
responses:
'200':
description: Success
schema:
type: array
items:
type: object
properties:
SampleProperty:
type: string
additionalProperties: false
'202':
description: Accepted
schema:
$ref: '#/definitions/PostRespDto'
Expected behavior
paths:
/sample:
post:
responses:
'200':
description: Success
schema:
type: array
items:
type: object
properties:
SampleProperty:
type: string
additionalProperties: false
'202':
description: Accepted
schema:
type: object
properties:
SampleProperty:
type: string
additionalProperties: false
Screenshots/Code Snippets
Merge request will be linked
Metadata
Metadata
Assignees
Labels
No labels