Swashbuckle.AspNetCore icon indicating copy to clipboard operation
Swashbuckle.AspNetCore copied to clipboard

Support Int128 and UInt128 in schema generation

Open captainsafia opened this issue 2 years ago • 0 comments

.NET 7 adds support for representing 128-bit integers via the Int128 and UInt128 types.

When provided as inputs for an API, the schema generator interprets the type as a string. When emitted as part of the response, the type is treated as an object.

We probably want to represent this type using the { "type": "integer" } schema type.

See https://github.com/dotnet/aspnetcore/issues/43119 for more info.

captainsafia avatar Feb 14 '23 23:02 captainsafia