Skip to content

Commit

Permalink
[Backport 8.x] Add x-model for QueryContainer (#2982)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 4, 2024
1 parent e77a343 commit 7adb256
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions docs/overlays/elasticsearch-shared-overlays.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ info:
title: Overlays for changes that apply to both Elasticsearch and Elasticsearch Serverless OpenAPI documents
version: 0.0.1
actions:
# Add x-model to hide children of schema objects that are defined elsewhere
- target: "$.components['schemas']['_types.query_dsl:QueryContainer']"
description: Add x-model and updated externalDocs for the QueryContainer object
update:
x-model: true
externalDocs:
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
description: Query domain specific language (DSL) reference
# Abbreviate and annotate items that are not shown in Bump.sh due to depth limits
- target: "$.components['schemas']['ml._types:Datafeed'].properties.query"
description: Remove query object from anomaly detection datafeed
Expand All @@ -12,7 +20,7 @@ actions:
description: Re-add a simplified query object in anomaly detection datafeed
update:
query:
x-abbreviated: true
x-model: true
type: object
description: >
The Elasticsearch query domain-specific language (DSL).
Expand All @@ -29,7 +37,7 @@ actions:
description: Re-add a simplified tokenizer object in anomaly detection analysis config
update:
tokenizer:
x-abbreviated: true
x-model: true
oneOf:
- type: object
- type: string
Expand All @@ -50,7 +58,7 @@ actions:
description: Re-add a simplified query object in data frame analytics source
update:
query:
x-abbreviated: true
x-model: true
type: object
description: >
The Elasticsearch query domain-specific language (DSL).
Expand All @@ -67,7 +75,7 @@ actions:
description: Re-add a simplified query object in transform source
update:
query:
x-abbreviated: true
x-model: true
type: object
description: >
A query clause that retrieves a subset of data from the source index.
Expand Down

0 comments on commit 7adb256

Please sign in to comment.