Skip to content

How do I mark a field as required in a request body model? #5759

Discussion options

You must be logged in to vote

ah the reason is because the operation you have is a @patch operation which right now http library makes the assumption it is a merge patch which apply if you use a model(so you can reuse the resource model)
Currently to disable that you have to put

@parameterVisibility

with no parameters on the operation playground

Please note however that this is something we are trying to change to make more explicit. @willmtemple might be able to say more

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@camille-villanueva
Comment options

@camille-villanueva
Comment options

@timotheeguerin
Comment options

Answer selected by camille-villanueva
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants