microsoft / microsoft/kiota

Nullable enum as UntypedNode

Open
#6,841 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
3.8k
Forks
333
Avg merge
16h 29m
Merged PRs (30d)
116

Description

Hello,

If i have a nullable enum property, the openApi generator write this to the Json file:

> "NullableOfGender": {
> "enum": [
> "Male",
> "Female",
> null
> ],
> "nullable": true
> }

So, when i consume the openApi via Kiota, it generate a "UntypedNode?".

Can you fix please?

Thanks.

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is named. Start by reproducing the nullable-enum OpenAPI schema and trace how Kiota maps it to UntypedNode?; done means the generated client represents the nullable enum appropriately rather than as an untyped node, with coverage for this schema.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
api, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.