validateRequiredFields
validateRequiredFields<
Desc>(schema,message,opts?):void
Defined in: required.ts:30
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://google.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