Skip to content

Commit 6678f22

Browse files
committed
same as range query
1 parent c4e7bf6 commit 6678f22

File tree

7 files changed

+590
-68
lines changed

7 files changed

+590
-68
lines changed

compiler/src/steps/validate-model.ts

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

598598
validateValueOf(valueOf, openGenerics)
599599
} else if (variants.kind === 'untagged') {
600-
if (fqn(parentName) !== '_types.query_dsl:DecayFunction' &&
600+
if (fqn(parentName) !== '_types.aggregations:AggregationRange' &&
601+
fqn(parentName) !== '_types.query_dsl:DecayFunction' &&
601602
fqn(parentName) !== '_types.query_dsl:DistanceFeatureQuery' &&
602-
fqn(parentName) !== '_types.aggregations:AggregationRange' &&
603603
fqn(parentName) !== '_types.query_dsl:RangeQuery') {
604604
throw new Error(`Please contact the devtools team before adding new untagged variant ${fqn(parentName)}`)
605605
}

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)