Replies: 2 comments
-
|
Thinking about is, The question becomes, why is a non-nullable string nullable in the API document. Is this not known at runtime? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Next day I realized my mistake. The request was set to query parameters instead of a body. Adding |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Should required non-nullable properties be marked as required automatically?
With the addition of the
requiredkeyword in .NET 7.I have a required non-nullable string in one of my request bodies.
But this is still marked as nullable:
For me it is logical that this is assumed to be not nullable in the API document from a software design perspective. What do you guys think?
Beta Was this translation helpful? Give feedback.
All reactions