Skip to content

Commit dc38fcd

Browse files
making range aggregation untagged union (#2725) (#4154)
* making range aggregation untagged union * same as range query * removed term range aggregation * Revert "removed term range aggregation" This reverts commit 1f832ef. * rebase fix (cherry picked from commit 231aa47) Co-authored-by: Laura Trotta <153528055+l-trotta@users.noreply.github.com>
1 parent 5e26818 commit dc38fcd

File tree

7 files changed

+683
-373
lines changed

7 files changed

+683
-373
lines changed

compiler/src/steps/validate-model.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,8 @@ 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' &&
602603
fqn(parentName) !== '_types.query_dsl:RangeQuery') {
603604
throw new Error(`Please contact the devtools team before adding new untagged variant ${fqn(parentName)}`)

output/openapi/elasticsearch-openapi.json

+94-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

+94-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)