-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
67 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
docs/development/core/server/kibana-plugin-server.routebodyvalidationparams.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [RouteBodyValidationParams](./kibana-plugin-server.routebodyvalidationparams.md) | ||
|
||
## RouteBodyValidationParams type | ||
|
||
Similar to the URL and query params, the body payload for a route are allowed to be validated via `schema.object(...)` (from @<!-- -->kbn/config-schema) or a `RouteValidateFunction` that returns the custom-validated value (similarly to the URL and query params). But, on top of that, when the `body` options `parse: false` or `output: 'stream'` are used, the `@kbn/config-schema` options to validate it are `schema.buffer(...)` or `schema.stream(...)`<!-- -->, respectively. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare type RouteBodyValidationParams = RouteURLValidationParams | Type<Buffer> | Type<Stream>; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
docs/development/core/server/kibana-plugin-server.routeurlvalidationparams.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [RouteURLValidationParams](./kibana-plugin-server.routeurlvalidationparams.md) | ||
|
||
## RouteURLValidationParams type | ||
|
||
URL params and query properties are allowed to be validated via `schema.object(...)` (from @<!-- -->kbn/config-schema) or a `RouteValidateFunction` that returns the custom-validated value. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare type RouteURLValidationParams = ObjectType | RouteValidateFunction<unknown>; | ||
``` |
6 changes: 3 additions & 3 deletions
6
.../kibana-plugin-server.validatefunction.md → ...na-plugin-server.routevalidatefunction.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [ValidateFunction](./kibana-plugin-server.validatefunction.md) | ||
[Home](./index.md) > [kibana-plugin-server](./kibana-plugin-server.md) > [RouteValidateFunction](./kibana-plugin-server.routevalidatefunction.md) | ||
|
||
## ValidateFunction type | ||
## RouteValidateFunction type | ||
|
||
Custom validate function (only if @<!-- -->kbn/config-schema is not a valid option in your plugin) | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export declare type ValidateFunction<T> = (data: any) => ValidateFunctionReturn<T>; | ||
export declare type RouteValidateFunction<T> = (data: any) => RouteValidateFunctionReturn<T>; | ||
``` |
6 changes: 3 additions & 3 deletions
6
...a-plugin-server.validatefunctionreturn.md → ...gin-server.routevalidatefunctionreturn.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters