Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Int128 and UInt128 in schema generation #2611

Closed
captainsafia opened this issue Feb 14, 2023 · 0 comments · Fixed by #2804
Closed

Support Int128 and UInt128 in schema generation #2611

captainsafia opened this issue Feb 14, 2023 · 0 comments · Fixed by #2804
Assignees

Comments

@captainsafia
Copy link
Contributor

.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 dotnet/aspnetcore#43119 for more info.

Havunen added a commit to Havunen/DotSwashbuckle that referenced this issue Feb 24, 2024
…itive types and formats lookup dictionary to reduce code duplication. Fixes domaindrivendev#2611 for #3
@martincostello martincostello added help-wanted A change up for grabs for contributions from the community feature suggestion and removed help-wanted A change up for grabs for contributions from the community labels Apr 14, 2024
@martincostello martincostello self-assigned this Apr 16, 2024
martincostello added a commit to martincostello/Swashbuckle.AspNetCore that referenced this issue Apr 16, 2024
- Ensure `DateOnly` and `TimeOnly` with for Newtonsoft.Json.
- Add System.Text.Json support for `TimeSpan` and `Version`.
- Add Int128 and UInt128 support.
- Handle `AnnotationsDataType.Upload`.
- Create `AnnotationsDataType` mapping dictionary only once.
Resolves domaindrivendev#2611.
martincostello added a commit to martincostello/Swashbuckle.AspNetCore that referenced this issue Apr 23, 2024
- Ensure `DateOnly` and `TimeOnly` with for Newtonsoft.Json.
- Add System.Text.Json support for `TimeSpan` and `Version`.
- Add Int128 and UInt128 support.
- Handle `AnnotationsDataType.Upload`.
- Create `AnnotationsDataType` mapping dictionary only once.
Resolves domaindrivendev#2611.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants