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

schema validation does not work for boolean query parameter #57

Closed
stevehu opened this issue Oct 2, 2018 · 0 comments
Closed

schema validation does not work for boolean query parameter #57

stevehu opened this issue Oct 2, 2018 · 0 comments

Comments

@stevehu
Copy link
Contributor

stevehu commented Oct 2, 2018

The OpenAPI spec defines a boolean type parameter:

     parameters:
      - name: redirect
        in: query
        required: false
        description: Whether or not to do a redirect. >
          If true the response will contain 302 Status and a Location header with new URL.
        schema:
          type: boolean

when I call {{ADDRESS}}/v2/translate/some-id?redirect=false I get the error:

{"statusCode":400,"code":"ERR11004","message":"VALIDATOR_SCHEMA","description":"Schema Validation Error - $: string found, boolean expected","severity":"ERROR"}
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