Closed chillheart closed 3 years ago
interesting I guess I never validated that
likely location for the fix if anyone wants to submit a PR: https://github.com/heldersepu/Swagger-Net/blob/5536663e8ea0fd2c5b95b56ea344b37d07f22a9b/Swagger.Net/Swagger/Extensions/SchemaExtensions.cs#L23-L30
Submitted pull request #105
We are using Swagger-Net to create Swagger 2.0 docs in a .NET 4.8 API. When I download the JSON and try to import it into various tools, we are getting an error that the JSON is malformed.
Here is the error that I am getting when I validate the JSON using swagger-cli:
This is the code that defines the model:
It appears that the swagger specification does not support date range minimum or maximum attribute in C#, so this should be ignored as it is causing the JSON to be invalid.