diff --git a/packages/core/http/core-http-versioned-router-server-internal/src/validate.ts b/packages/core/http/core-http-versioned-router-server-internal/src/validate.ts index 9487774670387..68754f614f09b 100644 --- a/packages/core/http/core-http-versioned-router-server-internal/src/validate.ts +++ b/packages/core/http/core-http-versioned-router-server-internal/src/validate.ts @@ -7,14 +7,14 @@ */ import type { RouteValidatorFullConfig } from '@kbn/core-http-server'; -import type { Version } from '@kbn/core-http-server'; +import type { ApiVersion } from '@kbn/core-http-server'; import { RouteValidator } from '@kbn/core-http-router-server-internal'; /** Will throw if any of the validation checks fail */ export function validate( data: { body?: unknown; params?: unknown; query?: unknown }, runtimeSchema: RouteValidatorFullConfig, - version: Version + version: ApiVersion ): { body: unknown; params: unknown; query: unknown } { const validator = RouteValidator.from(runtimeSchema); return {