Opensearch dashboards.routevalidatorconfig
Home > opensearch-dashboards > RouteValidatorConfig
RouteValidatorConfig interface
The configuration object to the RouteValidator class. Set params
, query
and/or body
to specify the validation logic to follow for that property.
Signature:
export interface RouteValidatorConfig<P, Q, B>
Properties
Property | Type | Description |
---|---|---|
body? | RouteValidationSpec<B> | (Optional) Validation logic for the body payload |
params? | RouteValidationSpec<P> | (Optional) Validation logic for the URL params |
query? | RouteValidationSpec<Q> | (Optional) Validation logic for the Query params |