Property defined for a parameter is not applicable for the parameter type

Description

A property defined for a parameter is not applicable for the type of the parameter.

Example

The following is an example of how this issue could look in your API definition. The string parameter has the property maximum defined which is a property of integers and numbers:

{
  "parameters": {
     "in": "query",
     "name": "id",
     "type": "string",
     "description": "Identifier of the object to be extracted.",
     "maximum": 8
  }
}

Remediation

Make sure that all properties defined for parameters match the parameter type.

{
  "parameters": {
     "in": "query",
     "name": "id",
     "type": "string",
     "description": "Identifier of the object to be extracted.",
     "maxLength": 8
  }
}

Get API Security news directly in your Inbox.

By clicking Subscribe you agree to our Data Policy