How to set up open api spec so that lists do not have nullable elements? #5075
Unanswered
marcinjahn
asked this question in
Q&A
Replies: 1 comment
-
Hi @marcinjahn
In C#, you can use OfType() to filter out/cast the values while conserving order. You can also use a combination of null propagation, null coalesce and collection initialization All together Let us know if you have any additional comments or questions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here's a schema of the response of my API endpoint:
The
codes
field, as generated by Kiota, looks as follows:There are two issues here:
Beta Was this translation helpful? Give feedback.
All reactions