heldersepu / Swagger-Net

Seamlessly adds a swagger to WebApi projects!
BSD 3-Clause "New" or "Revised" License
144 stars 42 forks source link

Fix to not add range to schema for DateTime range #105

Closed chillheart closed 3 years ago

chillheart commented 3 years ago

Added logic to AddRange method to check if it is an Int32 or Double. If it is not, then it will not add the range attribute to the schema. OpenAPI only supports integer ranges (https://swagger.io/docs/specification/data-models/data-types/#range)