Property 'allowReserved' is only allowed for query parameters

Description

You have defined the property allowReserved for a parameter where it is not allowed. The property is only allowed for query parameters.

For more details, see the OpenAPI Specification.

Example

The following is an example of how this issue could look in your API definition. The parameter has allowReserved set to true, but in is set to path:

1myAPIparameter:
2  name: string
3  in: path
4  required: true
5  allowReserved: true
6  schema:
7    $ref: "#/components/schemas/string"
8

Remediation

Make sure you only define allowReserved for query parameters.

1myAPIparameter:
2  name: string
3  in: query
4  required: true
5  allowReserved: true
6  schema:
7    $ref: "#/components/schemas/string"
8

Copyright 42Crunch 2021