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

Incorrect display of nested oneOf properties #618

Closed
fredriklengstrand opened this issue Aug 23, 2018 · 1 comment
Closed

Incorrect display of nested oneOf properties #618

fredriklengstrand opened this issue Aug 23, 2018 · 1 comment

Comments

@fredriklengstrand
Copy link
Contributor

When you have nested oneOf properties the top level type for the property looks incorrect:

screen shot 2018-08-23 at 11 04 24

Shouldn't it be "Array of string or integer" or "string" in this case?

Here is a sample property:

test:
  oneOf:
    - type: array
      items:
        oneOf:
          - type: string
          - type: integer
    - type: string
@RomanHotsiy
Copy link
Member

Yes, thanks for the report. Will try to fix it asap.

P.S. Noticed that nested allOfs look pretty ugly 😢

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

No branches or pull requests

2 participants