Created by: rienafairefr
PR checklist
-
Read the contribution guidelines. -
Filed the PR against the correct branch: master
,. Default:3.4.x
,4.0.x
master
.
Description of the PR
InlineModelResolver
wasn't handling the composedschema case correctly or even at all, with this PR it can transform inline models like this:
ComposedModel:
allOf:
- $ref: '#/components/schemas/Model'
- type: object
properties:
prop:
type: string
into
ComposedModel:
allOf:
- $ref: '#/components/schemas/Model'
- $ref: '#/components/schemas/ComposedModel_allOf'
ComposedModel_allOf:
type: object
properties:
prop:
type: string
this might help for handling correctly allOf/anyOf/oneOf, even in the case of the presence of inline model