Skip to content

Commit 07886ab

Browse files
committed
same as range query
1 parent 9fd43f8 commit 07886ab

File tree

7 files changed

+307
-324
lines changed

7 files changed

+307
-324
lines changed

compiler/src/steps/validate-model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,9 +608,9 @@ export default async function validateModel (apiModel: model.Model, restSpec: Ma
608608

609609
validateValueOf(valueOf, new Set())
610610
} else if (variants.kind === 'untagged') {
611-
if (fqn(parentName) !== '_types.query_dsl:DecayFunction' &&
611+
if (fqn(parentName) !== '_types.aggregations:AggregationRange' &&
612+
fqn(parentName) !== '_types.query_dsl:DecayFunction' &&
612613
fqn(parentName) !== '_types.query_dsl:DistanceFeatureQuery' &&
613-
fqn(parentName) !== '_types.aggregations:AggregationRange' &&
614614
fqn(parentName) !== '_types.query_dsl:RangeQuery') {
615615
throw new Error(`Please contact the devtools team before adding new untagged variant ${fqn(parentName)}`)
616616
}

output/openapi/elasticsearch-openapi.json

Lines changed: 17 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 17 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)