Skip to content

AnyOf Keyword Not supported #34

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

Open
AMcManigal opened this issue Apr 30, 2018 · 1 comment
Open

AnyOf Keyword Not supported #34

AMcManigal opened this issue Apr 30, 2018 · 1 comment

Comments

@AMcManigal
Copy link

AMcManigal commented Apr 30, 2018

Is the 'anyOf' keyword supported? It doesn't appear to work.
See here for the full spec example.

Following is an excerpt of the relevant part. Notice that the healthSigns and animalType objects do not appear in the final parse result.

PetCreatePartTwo:
      type: object
      x-model: PetCreatePartTwo
      properties:
        position:
          $ref: "#/components/schemas/Position"
        healthy:
          type: boolean
        healthSigns:
          type: array
          items:
            anyOf:
              - $ref: '#/components/schemas/FreshBreath'
              - $ref: '#/components/schemas/ShinyCoat'
              - $ref: '#/components/schemas/EyesBright'

        animalType:
          oneOf:
            - $ref: '#/components/schemas/MammalDetails'
            - $ref: '#/components/schemas/AvianDetails'
@diogobaeder
Copy link

diogobaeder commented May 16, 2018

Same for oneOf. I'm trying to make it work, but it doesn't work at all, unfortunately.

[UPDATE] #37 has been resolved. Yay! :-)

@p1c2u p1c2u added the area/schema Indicates an issue on schema area label Aug 17, 2018
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

3 participants