diff --git a/compiler/src/steps/validate-model.ts b/compiler/src/steps/validate-model.ts index 4e661ac94f..fa3fd581cf 100644 --- a/compiler/src/steps/validate-model.ts +++ b/compiler/src/steps/validate-model.ts @@ -173,10 +173,7 @@ export default async function validateModel (apiModel: model.Model, restSpec: Ma const additionalRoots: TypeName[] = [ // ErrorResponse is not referenced anywhere, but any API could return it if an error happens. - { namespace: '_types', name: 'ErrorResponseBase' }, - // ESQL base versions are pseudo-constants - { namespace: 'esql._types', name: 'BaseStatefulEsqlVersion' }, - { namespace: 'esql._types', name: 'BaseServerlessEsqlVersion' } + { namespace: '_types', name: 'ErrorResponseBase' } ] additionalRoots.forEach(t => validateTypeRef(t, undefined, new Set())) diff --git a/output/schema/schema.json b/output/schema/schema.json index 1a458844c5..bb4ebe884a 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -112546,47 +112546,6 @@ }, "specLocation": "eql/search/types.ts#L20-L32" }, - { - "description": "Version of the ES|QL language that should be used by default in serverless client libraries.\n\nThis value is guaranteed to be stable for a given value of the Serverless API version, even if newer versions\nof the ES|QL language are added within that API version.", - "kind": "type_alias", - "name": { - "name": "BaseServerlessEsqlVersion", - "namespace": "esql._types" - }, - "specLocation": "esql/_types/EsqlVersion.ts#L42-L48", - "type": { - "kind": "literal_value", - "value": "2024.04.01" - } - }, - { - "description": "Version of the ES|QL language that should be used by default in stateful client libraries.\n\nThis value is guaranteed to be stable within a major version of the Elastic Stack, even if newer versions\nof the ES|QL language are added within that major version.", - "kind": "type_alias", - "name": { - "name": "BaseStatefulEsqlVersion", - "namespace": "esql._types" - }, - "specLocation": "esql/_types/EsqlVersion.ts#L34-L40", - "type": { - "kind": "literal_value", - "value": "2024.04.01" - } - }, - { - "kind": "enum", - "members": [ - { - "codegenName": "V2024_04_01", - "description": "Run against the first version of ES|QL.", - "name": "2024.04.01" - } - ], - "name": { - "name": "EsqlVersion", - "namespace": "esql._types" - }, - "specLocation": "esql/_types/EsqlVersion.ts#L20-L29" - }, { "attachedBehaviors": [ "CommonQueryParameters" @@ -112657,18 +112616,6 @@ "namespace": "_builtins" } } - }, - { - "description": "The version of the ES|QL language in which the \"query\" field was written.", - "name": "version", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "EsqlVersion", - "namespace": "esql._types" - } - } } ] }, @@ -112711,7 +112658,7 @@ } } ], - "specLocation": "esql/query/QueryRequest.ts#L25-L69" + "specLocation": "esql/query/QueryRequest.ts#L24-L64" }, { "body": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index a190d92afe..ce34c4914b 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -9827,12 +9827,6 @@ export type EqlSearchResponse = EqlEqlSearchResponseBase