swagger-api / swagger-ui

Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
https://swagger.io
Apache License 2.0
26.38k stars 8.92k forks source link

Is ExclusiveMinimum/ExclusiveMaximum checked when creating the request #10038

Open jgarciadelanoceda opened 3 months ago

jgarciadelanoceda commented 3 months ago

I have recently added support for ExclusiveMinimum/ExclusiveMaximum for Swashbuckle a C# library that uses Swagger-ui under the hood. It uses it and it provides a OpenApi document with the version 3.0.1. I do not know if the fields ExclusiveMinimum or ExclusiveMaximum have changed from the version 3.0.1, but with my PR the library now puts the values as a boolean value

When doing the request with a parameter that has a Maximum or Minimum with the exclusive value does not prevent me from doing it. I have also test outside of the boundary and the page is preventing me from doing it.

The related issue: domaindrivendev/Swashbuckle.AspNetCore#2957