When I use nested objects (without reference), flattening phase loose lot of info from it. For example "required"
schemas:
ReturnInformation:
type: object
properties:
manufacturer_signin_credentials:
type: object
properties:
login:
type: string
password:
type: string
required:
- login
- password
geberate ReturnInformationManufacturerSigninCredentials which fields are optional, but should be required from spec.
I found its ahppening during flattening phase. In InlineModelResolver.modelFromProperty() method which copy only few properties.