OpenAPI.NET.CSharpAnnotations icon indicating copy to clipboard operation
OpenAPI.NET.CSharpAnnotations copied to clipboard

System.UInt32 incorrectly translated to OpenApi format "int32"

Open ps-weber opened this issue 5 years ago • 1 comments

A int32 can not fit all possible values of a uint32. This leads to errors with generated clients.

See TypeExtensions.cs

Basically the same issue as #210, but with uint instead of ushort.

ps-weber avatar Nov 12 '19 16:11 ps-weber

Could there be an general cause for these mapping differences?. I'm encountering something similar between decimal types being explained as doubles. Less fatal, but it begins to look like a pattern.

Edit: Looking further into the code ad ps-weber referenced, I found that decimal is not supported in the json/openApi spec yet, so my issue can be ignored. I guess double is as good as it gets.

christopher-bonitz avatar Dec 06 '19 10:12 christopher-bonitz