Skip to content

validateAipFilter

validateAipFilter<TPathKind>(path, declarations?): void

Defined in: filtering/validate-aip-filter.ts:27

Validates an AIP filter string in an Angular form control. This function uses the parseAndCheckFilter function from the @protoutil/aip package to validate the filter string and returns a validation error if the filter string is invalid. The validation error can then be used to display an error message in the Angular form control.

TPathKind extends PathKind = Root

SchemaPath<string, 1, TPathKind>

the schema path of the form control to validate

() => Decl[]

the optional filter declarations to use for validation

void