Skip to content

[Swagger specification] skip the reference object property [OPENAPI 3.+] #2808

@bmmule

Description

@bmmule

Swagger specification :

Consider in the case of "allOf" , i don't want to use one of the properties from my reference object , how should I achieve that?

example :

recipientAddress:
      allOf:
        - $ref: '#/components/schemas/Addresses'
Addresses:
      properties:
        addressCategory:
          type: string
          maxLength: 10
          description: Type of Address 
          enum: 
            - PERMANENT 
            - COMMUNICATON
          example: PERMANENT
        addressLine1:
          type: string
          maxLength: 40
          description: First line of the Address
          example: host tower

here i don't want property "addressCategory" in my object "recipientAddress".

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