Skip to content

Describing an array of JSON objects #1612

Closed Answered by catosaurusrex2003
jayzym asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @jayzym , I found the issue 😀 .

the issue lies here

components:
  schemas:
    Message:
      type: object
      payload:                 👈
        properties:
          timestamp:
            type: string
          market:
            type: string
          network-type:
            type: string
          message:
            type: string

above ☝️ there is an extra nested payload which is causing the problem.

instead it should be like this 👇

components:
  schemas:
    Message:
      type: object
      properties:
        timestamp:
          type: string
        market:
          type: string
        network-type:
          type: string
        message:
          type: string

This …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@catosaurusrex2003
Comment options

Answer selected by jayzym
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
2 participants