Skip to content

Commit c4e7bf6

Browse files
committed
making range aggregation untagged union
1 parent ff586fc commit c4e7bf6

File tree

7 files changed

+674
-8
lines changed

7 files changed

+674
-8
lines changed

compiler/src/steps/validate-model.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,7 @@ export default async function validateModel (apiModel: model.Model, restSpec: Ma
599599
} else if (variants.kind === 'untagged') {
600600
if (fqn(parentName) !== '_types.query_dsl:DecayFunction' &&
601601
fqn(parentName) !== '_types.query_dsl:DistanceFeatureQuery' &&
602+
fqn(parentName) !== '_types.aggregations:AggregationRange' &&
602603
fqn(parentName) !== '_types.query_dsl:RangeQuery') {
603604
throw new Error(`Please contact the devtools team before adding new untagged variant ${fqn(parentName)}`)
604605
}

output/openapi/elasticsearch-openapi.json

Lines changed: 77 additions & 0 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: 77 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)