oapi-codegen icon indicating copy to clipboard operation
oapi-codegen copied to clipboard

Support allOf sibling property required

Open Swiftwork opened this issue 3 years ago • 0 comments

OpenAPI 3.1 supports sibling properties to allOf. It would be very useful if the following schema was supported by the codegen. Now it just ignores the required property.

User:
  required:
    - id
    - firstName
  allOf:
    - type: object
      properties:
        id:
          type: string
    - $ref: '#/components/schemas/UserProperties'

Resolved by https://github.com/deepmap/oapi-codegen/pull/717

Swiftwork avatar Jan 21 '23 18:01 Swiftwork