Parameter property is not applicable to the parameter's type

Issue ID: warning-parameter-property-improper

Description

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

For more details, see the OpenAPI Specification.

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