Skip to content

Should SerializeV2WithoutReference resolve in object references as well? #93

Closed Answered by VisualBean
martinek-stepan asked this question in Q&A
Discussion options

You must be logged in to vote

Ive spent a bit more time on the issue, trying to streamline this a bit for the payload schemas.
Anyway.. I will make a PR that fixes this.

With default settings you will get an output like this

channels:
  mychannel:
    publish:
      message:
        payload:
          type: object
          required:
            - testB
          properties:
            testC:
              $ref: '#/components/schemas/testC'
            testB:
              $ref: '#/components/schemas/testB'
components:
  schemas:
    testD:
      type: string
      format: uuid
    testC:
      type: object
      properties:
        testD:
          $ref: '#/components/schemas/testD'
    testB:
      type: boolean

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@martinek-stepan
Comment options

@VisualBean
Comment options

Answer selected by martinek-stepan
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