Skip to content

schema validation does not work for boolean query parameter #57

@stevehu

Description

@stevehu

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"}

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