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

allOf inside oneOf not rendering #660

Closed
abagshaw opened this issue Sep 28, 2018 · 1 comment
Closed

allOf inside oneOf not rendering #660

abagshaw opened this issue Sep 28, 2018 · 1 comment

Comments

@abagshaw
Copy link

abagshaw commented Sep 28, 2018

The following yaml:

openapi: 3.0.0
info:
  title: test
  version: 1.0.0
paths:
  /test:
    get:
      summary: test
      responses:
        '200':
          description: Test
          content:
            application/json:
              schema:
                oneOf:
                  - allOf:
                    - type: object
                      properties:
                        firstA:
                          type: string
                    - type: object
                      properties:
                        firstB:
                          type: string
                  - allOf:
                    - type: object
                      properties:
                        secondA:
                          type: string
                    - type: object
                      properties:
                        secondB:
                          type: string

Renders in ReDoc like so:
screen shot 2018-09-28 at 3 56 33 pm

I'm new to the OpenAPI spec so what I'm trying to do may be invalid. If is it, could someone give me some pointers on how to properly achieve the same result? Thanks!

@RomanHotsiy
Copy link
Member

Will be available in 2.0.0-alpha.40

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

2 participants