Skip to content

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

Closed

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".

Activity

  1. webron commented on Nov 29, 2021

    @webron
    Member

    What's the point in cross posting here and #2116 (comment)? Also, when posting snippets, please make sure to use github's markdown otherwise it's hard to read your examples.

  2. locked and limited conversation to collaborators on Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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