Skip to content
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

Parsing allOf for XML and JSON #10

Open
marklewin opened this issue Oct 12, 2018 · 0 comments
Open

Parsing allOf for XML and JSON #10

marklewin opened this issue Oct 12, 2018 · 0 comments

Comments

@marklewin
Copy link

If you look at niResponseXmlStandard in '#/components/schemas', you can see that it uses allOf to include the responses to niResponseXmlBasic and then add additional fields:

    niResponseXmlStandard:
      type: object
      description: 'Standard'
      xml:
        name: lookup
      allOf:
        - $ref: '#/components/schemas/niResponseXmlBasic'
        - properties:
            request_price:
              type: number
              description: 'If there is an internal lookup error, the `refund_price` will reflect the lookup price. If `cnam` is requested for a non-US number the `refund_price` will reflect the `cnam` price. If both of these conditions occur, `refund_price` is the sum of the lookup price and `cnam` price.'
              example: '0.01500000'
            remaining_balance:
              type: number
              description: 'Your account balance in EUR after this request. Not returned with Number Insight Advanced Async API.'
              example: '1.23456789'

I’m trying to do the same with niResponseJsonStandard, but it won't render properly (or at all), breaking both XML and JSON versions:

screen shot 2018-10-12 at 13 02 35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant