mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[HTTP] Revert postValidate isPublicAccess (#207829)
This commit is contained in:
parent
5585ac46c6
commit
cf4d79c862
1 changed files with 6 additions and 2 deletions
|
@ -20,6 +20,7 @@ import type {
|
|||
IKibanaResponse,
|
||||
RouteAccess,
|
||||
RouteConfigOptions,
|
||||
PostValidationMetadata,
|
||||
} from '@kbn/core-http-server';
|
||||
import { isConfigSchema } from '@kbn/config-schema';
|
||||
import { isZod } from '@kbn/zod';
|
||||
|
@ -205,10 +206,13 @@ function routeSchemasFromRouteConfig<P, Q, B>(
|
|||
}
|
||||
}
|
||||
|
||||
function getPostValidateEventMetadata(request: AnyKibanaRequest, routeInfo: RouteInfo) {
|
||||
function getPostValidateEventMetadata(
|
||||
request: AnyKibanaRequest,
|
||||
routeInfo: RouteInfo
|
||||
): PostValidationMetadata {
|
||||
return {
|
||||
deprecated: routeInfo.deprecated,
|
||||
isInternalApiRequest: request.isInternalApiRequest,
|
||||
isPublicAccess: isPublicAccessApiRoute(routeInfo),
|
||||
isPublicAccess: routeInfo.access === 'public',
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue