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

parameter type object should be validated deep #6880

Closed
mathis-m opened this issue Jan 31, 2021 · 0 comments · Fixed by #6878
Closed

parameter type object should be validated deep #6880

mathis-m opened this issue Jan 31, 2021 · 0 comments · Fixed by #6878

Comments

@mathis-m
Copy link
Contributor

Parameter of type object should be validated deep.
Should be invalid and state that /test is required property:
image
Should be invalid and state that /test has min of 1:
image

openapi: 3.0.0
info:
  title: some
  version: 1.0.0
servers:
  - url: https://httpbin.org
paths:
  /post:
    post:
      parameters:
        - name: "object"
          in: "query"
          description: "Object with required prop test, test >=1"
          required: true
          schema:
           type: "object"
           required: 
            - "test"
           properties:
            test:
              type: "integer"
              format: "int32"
              minimum: 1
              example: 1
        - name: "ads"
          in: "query"
          description: "Just a list of ints"
          schema:
            type: "integer"
            format: "int32"
            minimum: 1
            example: 1
      responses:
        '200':
          description: ok
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

Successfully merging a pull request may close this issue.

1 participant