Commit 4b9be83
fix(http-client-csharp): support int64 enum/union base types
Extend InputEnumTypeValueConverter to handle InputPrimitiveTypeKind.Int64
by reading values via GetInt64() and widening InputEnumTypeIntegerValue's
IntegerValue from int to long. Also include the offending kind, enum,
and value names in the default-arm JsonException message so unsupported
kinds are diagnosable from build output.
Fixes Azure/azure-sdk-for-net#59168.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 7ff22d0 commit 4b9be83
2 files changed
Lines changed: 4 additions & 3 deletions
File tree
- packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes
- Serialization
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | | - | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
0 commit comments