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

Request Validation validates child properties even when optional parent is missing #107

Open
ryshep111 opened this issue Dec 4, 2018 · 2 comments

Comments

@ryshep111
Copy link

- name: body
          in: body
          description: optional user and transaction objects to persist to session
          required: false
          schema:
            type: object
            required:
              - user
            properties:
              user:
                $ref: ./definitions/userObj.yaml
              transaction:
                $ref: ./definitions/transactionObj.yaml

With this yaml, BOS still validates that user exists even when the optional request body is not supplied.

Using version 2.10.2

@seanpk
Copy link
Member

seanpk commented Dec 9, 2018

@ryshep111 - can you provide an executable example and instructions to debug?

1 similar comment
@seanpk
Copy link
Member

seanpk commented Dec 15, 2018

@ryshep111 - can you provide an executable example and instructions to debug?

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