You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I generate OpenAPI yaml spec with Swashbuckle.AspNetCore.Cli the "openapi" field in the generated spec containing the OpenAPI version gets generated differently depending on the culture settings in the OS.
Repro steps:
On windows 11 go to "Time & language" > "Language & region" under settings and set "Regional format" to "English (United States)".
Generate an OpenAPI spec as yaml with Swashbuckle.AspNetCore.Cli
The generated file will look like:
openapi: 3.0.1
...
Go to "Time & language" > "Language & region" under settings and set "Regional format" to "English (Denmark)".
Generate an OpenAPI spec as yaml with Swashbuckle.AspNetCore.Cli
The generated file will look like:
openapi: '3.0.1'
...
This is most likely related to the fact that some cultures use "." as decimal separator while other cultures use ",".
It would be great if the generated spec would be identical regardless of the users culture settings 🙂
The text was updated successfully, but these errors were encountered:
Swashbuckle.AspNetCore.Swagger.csproj is using version "1.2.3" of "Microsoft.OpenApi", and the above fix was released in version "1.4.4" (latest is "1.6.0").
When I generate OpenAPI yaml spec with Swashbuckle.AspNetCore.Cli the "openapi" field in the generated spec containing the OpenAPI version gets generated differently depending on the culture settings in the OS.
Repro steps:
This is most likely related to the fact that some cultures use "." as decimal separator while other cultures use ",".
It would be great if the generated spec would be identical regardless of the users culture settings 🙂
The text was updated successfully, but these errors were encountered: