Skip to content

Nested objects flattening loose lot of information ("required" for example) #1018

@MercurieVV

Description

@MercurieVV

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions