Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bmmule opened this issue Nov 29, 2021 · 1 comment
Closed

Comments

@bmmule
Copy link

bmmule commented Nov 29, 2021

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

@webron
Copy link
Member

webron commented Nov 29, 2021

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.

@OAI OAI locked and limited conversation to collaborators Nov 29, 2021
@webron webron closed this as completed Nov 29, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants