You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I am not mistaken query parameters are not optional when using Minimal Apis. For example the pagination parameters in all the get list endpoints are required even though default values have been specified in the Query properties.
The only way I have found to make those non required is to declare them as nullable and check for null in the query itself.
Please let me know if that is the best way we can address this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If I am not mistaken query parameters are not optional when using Minimal Apis. For example the pagination parameters in all the get list endpoints are required even though default values have been specified in the Query properties.
The only way I have found to make those non required is to declare them as nullable and check for null in the query itself.
Please let me know if that is the best way we can address this.
Beta Was this translation helpful? Give feedback.
All reactions