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
Here all Foos must be created in the same parent, and we allow clients to omit parent in subrequests. Marking CreateTestRequest.parent as REQUIRED seems to violate the guideline
Fields should not be described as required in order to signify ... A field which is conditionally required in some situations.
What is the recommendation in this case?
The text was updated successfully, but these errors were encountered:
Oh, hmm. This is a weird situation. I think it is fine to mark it as REQUIRED in this case. I will need to figure out how to word a "subrequest exception".
We try to consistently document required fields with
REQUIRED
annotation and use BatchCreate pattern:Here all Foos must be created in the same parent, and we allow clients to omit parent in subrequests. Marking
CreateTestRequest.parent
as REQUIRED seems to violate the guidelineWhat is the recommendation in this case?
The text was updated successfully, but these errors were encountered: