Skip to content

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

@ryshep111

Description

@ryshep111
- 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions