Closed jnystad closed 11 months ago
Thank you for reporting. We will do further investigation.
@jnystad Do you have a test service we can use to reproduce the error? If not, can you please provide the used OpenAPI document?
Sorry, not allowed to share it in its entirety at the moment.
The parameter has this spec:
{
"name": "limit",
"in": "query",
"description": "Max results",
"style": "form",
"explode": false,
"schema": {
"maximum": 1000,
"minimum": 0,
"type": "integer",
"default": 100
}
},
Describe the bug
With minimum set to 0:
Limit minimum/maximum can be decided by the server, and minimum 0 is not disallowed
Expected behavior Test should allow minimum limit value to be 0.
Additional context Abstract Test 16 wording: Verify that the limit query parameter complies with the following definition (using an OpenAPI Specification 3.0 fragment):
Note that the API can define values for "minimum", "maximum" and "default".