validateRequiredFields
validateRequiredFields<
Desc>(schema,message,opts?):void
Defined in: packages/aip/src/fieldbehavior/required.ts:27
Returns a validation error if any field annotated as required does not have a value. If a fieldMask is provided, only fields in the mask are checked. Otherwise, all fields are checked.
See: https://aip.dev/203
Type Parameters
Section titled “Type Parameters”Desc extends DescMessage
Parameters
Section titled “Parameters”schema
Section titled “schema”Desc
message
Section titled “message”MessageShape<Desc>
Returns
Section titled “Returns”void