I see a build error in the generated TypeScript client model code line in /client/models/index.ts in the method deserializeIntoGeography ('Geography_type' only refers to a type, but is being used as a value):
"type": n => { geography.type = n.getEnumValue<Geography_type>(Geography_typeObject) ?? Geography_type.States; },
and I am able to fix it by changing it to:
"type": n => { geography.type = n.getEnumValue<Geography_type>(Geography_typeObject) ?? Geography_typeObject.States; },
using Kiota dotnet tool version 1.11.1+86b3a623dc3fb6b55fed6a49519ec837f0fbc02c
I have an OpenAPI type definition
geography
with an enum fieldtype
that has a default valueStates
:I see a build error in the generated TypeScript client model code line in /client/models/index.ts in the method
deserializeIntoGeography
('Geography_type' only refers to a type, but is being used as a value):and I am able to fix it by changing it to:
using Kiota dotnet tool version 1.11.1+86b3a623dc3fb6b55fed6a49519ec837f0fbc02c