mulesoft/osprey-cli

Apikit does not validate URI parameters marked as "number"

Closed this issue · 1 comments

I have this RAML:

    /pages: &pages
      type: collection
      /{pageId}:
        uriParameters:
          pageId:
            type: number
            description: The page's numeric ID
            required: true

a request to this URI http://localhost:3000/api/pages/examples returns the example, when it should have thrown a validation error, as "examples" is not a valid number

Marking this as a bug.