Skip to content

Commit

Permalink
making range aggregation untagged union
Browse files Browse the repository at this point in the history
  • Loading branch information
l-trotta committed Jul 16, 2024
1 parent f8b2820 commit 9fd43f8
Show file tree
Hide file tree
Showing 7 changed files with 486 additions and 65 deletions.
1 change: 1 addition & 0 deletions compiler/src/steps/validate-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ export default async function validateModel (apiModel: model.Model, restSpec: Ma
} else if (variants.kind === 'untagged') {
if (fqn(parentName) !== '_types.query_dsl:DecayFunction' &&
fqn(parentName) !== '_types.query_dsl:DistanceFeatureQuery' &&
fqn(parentName) !== '_types.aggregations:AggregationRange' &&
fqn(parentName) !== '_types.query_dsl:RangeQuery') {
throw new Error(`Please contact the devtools team before adding new untagged variant ${fqn(parentName)}`)
}
Expand Down
77 changes: 77 additions & 0 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

77 changes: 77 additions & 0 deletions output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9fd43f8

Please sign in to comment.