Skip to content

How to define multiple objects to the definitions or components #3062

Closed Answered by rafalkrupinski
BhanuKiranChaluvadi asked this question in Q&A
Discussion options

You must be logged in to vote
ErrorCode:
    type: object
    properties:
      code:
        type: integer
      field: 
        type: string 
    enum:
    - code: 1001
      field: missing_file
    - code: 1002
      field: invalid_file
...

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@BhanuKiranChaluvadi
Comment options

@rafalkrupinski
Comment options

Answer selected by handrews
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants