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

oneOf in OAS3 not supported #31

Closed
mediafreakch opened this issue Nov 14, 2018 · 0 comments
Closed

oneOf in OAS3 not supported #31

mediafreakch opened this issue Nov 14, 2018 · 0 comments

Comments

@mediafreakch
Copy link
Contributor

Consider the following OAS3:

openapi: 3.0.0
components:
  schemas:
    ArticleFraud:
      type: object
      properties:
        reason:
          type: string
    UserFraud:
      type: object
      properties:
        reason:
          type: string
    FraudCase:
      type: object
      properties:
        id:
          type: number
        metadata:
          oneOf:
            - $ref: '#/components/schemas/ArticleFraud'
            - $ref: '#/components/schemas/UserFraud'

Fails with: TypeError: Cannot read property 'match' of undefined in https://github.com/yayoc/swagger-to-flowtype/blob/master/src/index.js#L25

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