From 02012623439c06f38c61268eb648b19dbb749c18 Mon Sep 17 00:00:00 2001 From: dblock Date: Fri, 12 Jul 2024 10:32:34 -0400 Subject: [PATCH] Enabled yml/sort-sequence-values. Signed-off-by: dblock --- .github/opensearch-cluster/docker-compose.yml | 2 +- .github/workflows/changelog.yml | 2 +- .github/workflows/check-links.yml | 2 +- .github/workflows/lint.yml | 4 +- .github/workflows/test-spec.yml | 8 +- .github/workflows/test-tools-integ.yml | 12 +- .github/workflows/test-tools-unit.yml | 12 +- _config.yml | 2 +- eslint.config.mjs | 3 +- .../_superseded_operations.schema.yaml | 3 +- json_schemas/test_story.schema.yaml | 7 +- spec/_superseded_operations.yaml | 2 + spec/namespaces/_core.yaml | 20 +-- spec/namespaces/indices.yaml | 14 +- spec/namespaces/knn.yaml | 32 ++-- spec/namespaces/ml.yaml | 20 +-- spec/namespaces/snapshot.yaml | 4 +- spec/schemas/_common.aggregations.yaml | 102 +++++------ spec/schemas/_common.analysis.yaml | 102 +++++------ spec/schemas/_common.mapping.yaml | 26 +-- spec/schemas/_common.query_dsl.yaml | 66 ++++---- spec/schemas/_common.yaml | 158 +++++++++--------- spec/schemas/_core.get.yaml | 2 +- spec/schemas/_core.get_script_context.yaml | 2 +- spec/schemas/_core.mget.yaml | 2 +- spec/schemas/_core.msearch.yaml | 2 +- spec/schemas/_core.rank_eval.yaml | 4 +- spec/schemas/_core.reindex_rethrottle.yaml | 2 +- spec/schemas/_core.search.yaml | 26 +-- spec/schemas/cluster._common.yaml | 2 +- spec/schemas/cluster.allocation_explain.yaml | 50 +++--- spec/schemas/cluster.health.yaml | 2 +- spec/schemas/cluster.remote_info.yaml | 14 +- spec/schemas/cluster.reroute.yaml | 10 +- spec/schemas/cluster.state.yaml | 8 +- spec/schemas/cluster.stats.yaml | 4 +- ...angling_indices.list_dangling_indices.yaml | 2 +- spec/schemas/indices._common.yaml | 20 +-- spec/schemas/indices.add_block.yaml | 2 +- spec/schemas/indices.get_index_template.yaml | 2 +- spec/schemas/indices.resolve_index.yaml | 6 +- spec/schemas/indices.segments.yaml | 4 +- spec/schemas/indices.shard_stores.yaml | 4 +- spec/schemas/indices.simulate_template.yaml | 2 +- spec/schemas/indices.stats.yaml | 10 +- spec/schemas/ingest._common.yaml | 22 +-- spec/schemas/knn._common.yaml | 4 +- spec/schemas/ml._common.yaml | 4 +- spec/schemas/nodes._common.yaml | 2 +- spec/schemas/nodes.info.yaml | 36 ++-- spec/schemas/nodes.stats.yaml | 34 ++-- spec/schemas/nodes.usage.yaml | 4 +- spec/schemas/notifications._common.yaml | 38 ++--- spec/schemas/search_pipeline._common.yaml | 2 +- spec/schemas/snapshot._common.yaml | 6 +- spec/schemas/snapshot.restore.yaml | 2 +- spec/schemas/tasks._common.yaml | 2 +- tests/_core/reindex.yaml | 3 +- tests/_core/search.yaml | 2 +- tests/indices/cache.yaml | 2 +- tests/indices/data_stream.yaml | 2 +- .../incorrect_order_of_operations.yaml | 2 + .../superseded_operations/invalid_schema.yaml | 2 + .../fixtures/spec/_superseded_operations.yaml | 2 + .../tests/tester/fixtures/specs/excerpt.yaml | 2 +- 65 files changed, 485 insertions(+), 473 deletions(-) diff --git a/.github/opensearch-cluster/docker-compose.yml b/.github/opensearch-cluster/docker-compose.yml index d52cf06ef..8225c8ff8 100644 --- a/.github/opensearch-cluster/docker-compose.yml +++ b/.github/opensearch-cluster/docker-compose.yml @@ -7,6 +7,6 @@ services: - '9200:9200' - '9600:9600' environment: - - discovery.type=single-node - 'OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_PASSWORD:-myStrongPassword123!}' + - discovery.type=single-node - path.repo=/tmp/opensearch/repo \ No newline at end of file diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 7908ff99c..23a1e0502 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -1,7 +1,7 @@ name: Verify Changelog on: pull_request: - types: [opened, edited, review_requested, synchronize, reopened, ready_for_review, labeled, unlabeled] + types: [edited, labeled, opened, ready_for_review, reopened, review_requested, synchronize, unlabeled] jobs: verify-changelog: diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml index 20dc5205a..d81ca6471 100644 --- a/.github/workflows/check-links.yml +++ b/.github/workflows/check-links.yml @@ -1,6 +1,6 @@ name: Check Links -on: [push, pull_request] +on: [pull_request,push] jobs: check: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 09b9f5168..246c9edf9 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -4,13 +4,13 @@ on: push: branches: ['**'] paths: - - '**/*.yaml' - '**/*.ts' + - '**/*.yaml' pull_request: branches: ['**'] paths: - - '**/*.yaml' - '**/*.ts' + - '**/*.yaml' jobs: lint: diff --git a/.github/workflows/test-spec.yml b/.github/workflows/test-spec.yml index 31d260973..975bf8834 100644 --- a/.github/workflows/test-spec.yml +++ b/.github/workflows/test-spec.yml @@ -5,16 +5,16 @@ on: paths: - .github/workflows/test-spec.yml - package*.json - - tsconfig.json - - tools/src/tester/** - spec/** + - tools/src/tester/** + - tsconfig.json pull_request: paths: - .github/workflows/test-spec.yml - package*.json - - tsconfig.json - - tools/src/tester/** - spec/** + - tools/src/tester/** + - tsconfig.json jobs: test-opensearch-spec: diff --git a/.github/workflows/test-tools-integ.yml b/.github/workflows/test-tools-integ.yml index 807e1be0f..d1cc975e8 100644 --- a/.github/workflows/test-tools-integ.yml +++ b/.github/workflows/test-tools-integ.yml @@ -4,21 +4,21 @@ on: push: branches: ['**'] paths: - - 'package*.json' + - '.github/workflows/test-tools*.yml' - eslint.config.mjs - jest.config.js - - tsconfig.json + - 'package*.json' - 'tools/**' - - '.github/workflows/test-tools*.yml' + - tsconfig.json pull_request: branches: ['**'] paths: - - 'package*.json' + - '.github/workflows/test-tools*.yml' - eslint.config.mjs - jest.config.js - - tsconfig.json + - 'package*.json' - 'tools/**' - - '.github/workflows/test-tools*.yml' + - tsconfig.json jobs: test: diff --git a/.github/workflows/test-tools-unit.yml b/.github/workflows/test-tools-unit.yml index cfa3ed4ae..00b585bb2 100644 --- a/.github/workflows/test-tools-unit.yml +++ b/.github/workflows/test-tools-unit.yml @@ -4,21 +4,21 @@ on: push: branches: ['**'] paths: - - 'package*.json' + - '.github/workflows/test-tools*.yml' - eslint.config.mjs - jest.config.js - - tsconfig.json + - 'package*.json' - 'tools/**' - - '.github/workflows/test-tools*.yml' + - tsconfig.json pull_request: branches: ['**'] paths: - - 'package*.json' + - '.github/workflows/test-tools*.yml' - eslint.config.mjs - jest.config.js - - tsconfig.json + - 'package*.json' - 'tools/**' - - '.github/workflows/test-tools*.yml' + - tsconfig.json jobs: test: diff --git a/_config.yml b/_config.yml index 0472d5b59..2ac0757d0 100644 --- a/_config.yml +++ b/_config.yml @@ -1,8 +1,8 @@ source: . destination: ./_site include: - - index.html - favicon.ico + - index.html exclude: - '*' keep_files: diff --git a/eslint.config.mjs b/eslint.config.mjs index a375a6502..f8b145316 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -118,7 +118,8 @@ export default [ 'yml/plain-scalar': ['error', 'always'], 'yml/no-trailing-zeros': 'error', 'yml/no-multiple-empty-lines': 'error', - '@cspell/spellchecker': ['error', { customWordListFile: '.cspell', autoFix: true }] + '@cspell/spellchecker': ['error', { customWordListFile: '.cspell', autoFix: true }], + 'yml/sort-sequence-values': ['error', { pathPattern: '.*', order: { type: 'asc' } }] } } ] diff --git a/json_schemas/_superseded_operations.schema.yaml b/json_schemas/_superseded_operations.schema.yaml index 6f11df33f..d2a944f79 100644 --- a/json_schemas/_superseded_operations.schema.yaml +++ b/json_schemas/_superseded_operations.schema.yaml @@ -15,7 +15,8 @@ patternProperties: type: array items: type: string + # eslint-disable-next-line yml/sort-sequence-values enum: [GET, POST, PUT, DELETE, HEAD, OPTIONS, PATCH] - required: [superseded_by, operations] + required: [operations, superseded_by] additionalProperties: false additionalProperties: false \ No newline at end of file diff --git a/json_schemas/test_story.schema.yaml b/json_schemas/test_story.schema.yaml index e81360b8b..3fda607e9 100644 --- a/json_schemas/test_story.schema.yaml +++ b/json_schemas/test_story.schema.yaml @@ -20,7 +20,7 @@ properties: $ref: '#/definitions/Chapter' version: $ref: '#/definitions/Version' -required: [description, chapters] +required: [chapters,description] additionalProperties: false definitions: @@ -69,6 +69,7 @@ definitions: type: string method: type: string + # eslint-disable-next-line yml/sort-sequence-values enum: [GET, PUT, POST, DELETE, PATCH, HEAD, OPTIONS] parameters: type: object @@ -80,7 +81,7 @@ definitions: $ref: '#/definitions/Output' version: $ref: '#/definitions/Version' - required: [path, method] + required: [method, path] Output: description: | @@ -140,7 +141,7 @@ definitions: error: type: object description: Error object. - required: [status, content_type, payload] + required: [content_type, payload, status] additionalProperties: false Payload: diff --git a/spec/_superseded_operations.yaml b/spec/_superseded_operations.yaml index a0ffaeadc..768cb8a4d 100644 --- a/spec/_superseded_operations.yaml +++ b/spec/_superseded_operations.yaml @@ -1,3 +1,5 @@ +# eslint-disable yml/sort-sequence-values + $schema: ./json_schemas/_superseded_operations.schema.yaml /_opendistro/_alerting/destinations: diff --git a/spec/namespaces/_core.yaml b/spec/namespaces/_core.yaml index 41e10f9d3..398fe6838 100644 --- a/spec/namespaces/_core.yaml +++ b/spec/namespaces/_core.yaml @@ -2649,8 +2649,8 @@ components: num_freed: type: number required: - - succeeded - num_freed + - succeeded count@200: description: '' content: @@ -2663,8 +2663,8 @@ components: _shards: $ref: '../schemas/_common.yaml#/components/schemas/ShardStatistics' required: - - count - _shards + - count create@200: description: '' content: @@ -2792,8 +2792,8 @@ components: get: $ref: '../schemas/_common.yaml#/components/schemas/InlineGet' required: - - _index - _id + - _index - matched field_caps@200: description: '' @@ -2811,8 +2811,8 @@ components: additionalProperties: $ref: '../schemas/_core.field_caps.yaml#/components/schemas/FieldCapability' required: - - indices - fields + - indices get@200: description: '' content: @@ -2986,9 +2986,9 @@ components: additionalProperties: type: object required: - - metric_score - details - failures + - metric_score reindex@200: description: '' content: @@ -3101,9 +3101,9 @@ components: additionalProperties: $ref: '../schemas/_core.search_shards.yaml#/components/schemas/ShardStoreIndex' required: + - indices - nodes - shards - - indices search_template@200: description: '' content: @@ -3148,10 +3148,10 @@ components: terminated_early: type: boolean required: - - took - - timed_out - _shards - hits + - timed_out + - took termvectors@200: description: '' content: @@ -3174,11 +3174,11 @@ components: _version: $ref: '../schemas/_common.yaml#/components/schemas/VersionNumber' required: - - found - _id - _index - - took - _version + - found + - took update@200: description: '' content: diff --git a/spec/namespaces/indices.yaml b/spec/namespaces/indices.yaml index 7ca420bb0..1ba7e4a5c 100644 --- a/spec/namespaces/indices.yaml +++ b/spec/namespaces/indices.yaml @@ -2134,8 +2134,8 @@ components: $ref: '../schemas/indices.add_block.yaml#/components/schemas/IndicesBlockStatus' required: - acknowledged - - shards_acknowledged - indices + - shards_acknowledged indices.analyze@200: description: '' content: @@ -2205,9 +2205,9 @@ components: acknowledged: type: boolean required: + - acknowledged - index - shards_acknowledged - - acknowledged indices.create_data_stream@200: description: '' content: @@ -2476,9 +2476,9 @@ components: items: $ref: '../schemas/indices.resolve_index.yaml#/components/schemas/ResolveIndexDataStreamsItem' required: - - indices - aliases - data_streams + - indices indices.rollover@200: description: '' content: @@ -2524,8 +2524,8 @@ components: _shards: $ref: '../schemas/_common.yaml#/components/schemas/ShardStatistics' required: - - indices - _shards + - indices indices.shard_stores@200: description: '' content: @@ -2554,8 +2554,8 @@ components: $ref: '../schemas/_common.yaml#/components/schemas/IndexName' required: - acknowledged - - shards_acknowledged - index + - shards_acknowledged indices.simulate_index_template@200: description: '' content: @@ -2592,8 +2592,8 @@ components: $ref: '../schemas/_common.yaml#/components/schemas/IndexName' required: - acknowledged - - shards_acknowledged - index + - shards_acknowledged indices.stats@200: description: '' content: @@ -2610,8 +2610,8 @@ components: _all: $ref: '../schemas/indices.stats.yaml#/components/schemas/IndicesStats' required: - - _shards - _all + - _shards indices.update_aliases@200: description: '' content: diff --git a/spec/namespaces/knn.yaml b/spec/namespaces/knn.yaml index 759abbf26..0ef35ae6f 100644 --- a/spec/namespaces/knn.yaml +++ b/spec/namespaces/knn.yaml @@ -662,34 +662,34 @@ components: items: type: string enum: + - cache_capacity_reached - circuit_breaker_triggered - - total_load_time - eviction_count - - hit_count - - miss_count + - faiss_initialized + - graph_index_errors + - graph_index_requests - graph_memory_usage - graph_memory_usage_percentage - - graph_index_requests - - graph_index_errors - - graph_query_requests - graph_query_errors + - graph_query_requests + - hit_count + - indexing_from_model_degraded + - indices_in_cache - knn_query_requests - - cache_capacity_reached - - load_success_count - load_exception_count - - indices_in_cache - - script_compilations + - load_success_count + - miss_count + - model_index_status + - nmslib_initialized - script_compilation_errors - - script_query_requests + - script_compilations - script_query_errors - - nmslib_initialized - - faiss_initialized - - model_index_status - - indexing_from_model_degraded - - training_requests + - script_query_requests + - total_load_time - training_errors - training_memory_usage - training_memory_usage_percentage + - training_requests required: true knn.stats::query.timeout: name: timeout diff --git a/spec/namespaces/ml.yaml b/spec/namespaces/ml.yaml index 161e613a6..81a81c54e 100644 --- a/spec/namespaces/ml.yaml +++ b/spec/namespaces/ml.yaml @@ -116,7 +116,7 @@ components: model_format: type: string description: The portable format of the model file. - enum: [TORCH_SCRIPT, ONNX] + enum: [ONNX, TORCH_SCRIPT] description: type: string description: The model description. @@ -124,9 +124,9 @@ components: type: string description: The ID of the model group to which to register the model. required: + - model_format - name - version - - model_format ml.search_models: content: application/json: @@ -184,10 +184,10 @@ components: type: integer format: int64 required: - - name - - latest_version - - description - access + - description + - latest_version + - name ml.delete_model_group@200: content: application/json: @@ -209,10 +209,10 @@ components: type: string description: The status. required: + - status # model_id doesn't seem to be required in the response # it can be eventually retrieved through the task_id - task_id - - status ml.delete_model@200: content: application/json: @@ -231,12 +231,12 @@ components: type: string description: The state. enum: - - CREATED - - RUNNING - - COMPLETED - - FAILED - CANCELLED + - COMPLETED - COMPLETED_WITH_ERROR + - CREATED + - FAILED + - RUNNING required: - state ml.search_models@200: diff --git a/spec/namespaces/snapshot.yaml b/spec/namespaces/snapshot.yaml index 3bb145b06..3847af1db 100644 --- a/spec/namespaces/snapshot.yaml +++ b/spec/namespaces/snapshot.yaml @@ -325,8 +325,8 @@ components: settings: $ref: '../schemas/snapshot._common.yaml#/components/schemas/RepositorySettings' required: - - type - settings + - type description: The repository definition required: true snapshot.restore: @@ -430,8 +430,8 @@ components: description: The number of remaining snapshots that were not returned due to size limits and that can be fetched by additional requests using the next field value. type: number required: - - total - remaining + - total snapshot.get_repository@200: description: '' content: diff --git a/spec/schemas/_common.aggregations.yaml b/spec/schemas/_common.aggregations.yaml index 9f8d03072..f2c25a65f 100644 --- a/spec/schemas/_common.aggregations.yaml +++ b/spec/schemas/_common.aggregations.yaml @@ -251,10 +251,10 @@ components: sum_as_string: type: string required: + - avg - count - - min - max - - avg + - min - sum StatsBucketAggregate: allOf: @@ -315,13 +315,13 @@ components: std_deviation_bounds_as_string: $ref: '#/components/schemas/StandardDeviationBoundsAsString' required: + - std_deviation + - std_deviation_population + - std_deviation_sampling - sum_of_squares - variance - variance_population - variance_sampling - - std_deviation - - std_deviation_population - - std_deviation_sampling StandardDeviationBounds: type: object properties: @@ -356,12 +356,12 @@ components: - nullable: true type: string required: - - upper - lower - - upper_population - lower_population - - upper_sampling - lower_sampling + - upper + - upper_population + - upper_sampling StandardDeviationBoundsAsString: type: object properties: @@ -378,12 +378,12 @@ components: lower_sampling: type: string required: - - upper - lower - - upper_population - lower_population - - upper_sampling - lower_sampling + - upper + - upper_population + - upper_sampling ExtendedStatsBucketAggregate: allOf: - $ref: '#/components/schemas/ExtendedStatsAggregate' @@ -534,9 +534,9 @@ components: max_as_string: type: string required: - - min - key - max + - min StringTermsAggregate: allOf: - $ref: '#/components/schemas/TermsAggregateBaseStringTermsBucket' @@ -1210,8 +1210,8 @@ components: bg_count: type: number required: - - score - bg_count + - score SignificantStringTermsAggregate: allOf: - $ref: '#/components/schemas/SignificantTermsAggregateBaseSignificantStringTermsBucket' @@ -1459,11 +1459,11 @@ components: avg_length_as_string: type: string required: - - count - - min_length - - max_length - avg_length + - count - entropy + - max_length + - min_length BoxPlotAggregate: allOf: - $ref: '#/components/schemas/AggregateBase' @@ -1498,12 +1498,12 @@ components: upper_as_string: type: string required: - - min + - lower - max + - min - q1 - q2 - q3 - - lower - upper TopMetricsAggregate: allOf: @@ -1534,8 +1534,8 @@ components: - nullable: true type: string required: - - sort - metrics + - sort TTestAggregate: allOf: - $ref: '#/components/schemas/AggregateBase' @@ -1609,14 +1609,14 @@ components: additionalProperties: type: number required: - - name + - correlation - count + - covariance + - kurtosis - mean - - variance + - name - skewness - - kurtosis - - covariance - - correlation + - variance GeoLineAggregate: allOf: - $ref: '#/components/schemas/AggregateBase' @@ -1629,9 +1629,9 @@ components: properties: type: object required: - - type - geometry - properties + - type AggregationContainer: allOf: - type: object @@ -1857,11 +1857,11 @@ components: MinimumInterval: type: string enum: - - second - - minute - - hour - day + - hour + - minute - month + - second - year AverageAggregation: allOf: @@ -1908,9 +1908,9 @@ components: GapPolicy: type: string enum: - - skip - insert_zeros - keep_values + - skip BucketPathAggregation: allOf: - $ref: '#/components/schemas/Aggregation' @@ -2067,11 +2067,11 @@ components: CardinalityExecutionMode: type: string enum: - - global_ordinals - - segment_ordinals - direct + - global_ordinals - save_memory_heuristic - save_time_heuristic + - segment_ordinals CategorizeTextAggregation: allOf: - $ref: '#/components/schemas/Aggregation' @@ -2200,22 +2200,22 @@ components: MissingOrder: type: string enum: + - default - first - last - - default ValueType: type: string enum: - - string - - long - - double - - number + - boolean - date - date_nanos + - double + - geo_point - ip + - long + - number - numeric - - geo_point - - boolean + - string CompositeHistogramAggregation: allOf: - $ref: '#/components/schemas/CompositeAggregationBase' @@ -2304,13 +2304,13 @@ components: CalendarInterval: type: string enum: - - second - - minute - - hour - day - - week + - hour + - minute - month - quarter + - second + - week - year ExtendedBoundsFieldDateMath: type: object @@ -2399,9 +2399,9 @@ components: SamplerAggregationExecutionHint: type: string enum: - - map - - global_ordinals - bytes_hash + - global_ordinals + - map ExtendedStatsAggregation: allOf: - $ref: '#/components/schemas/FormatMetricAggregationBase' @@ -3056,8 +3056,8 @@ components: TermsAggregationCollectMode: type: string enum: - - depth_first - breadth_first + - depth_first MultiTermLookup: type: object properties: @@ -3084,12 +3084,12 @@ components: NormalizeMethod: type: string enum: + - mean + - percent_of_sum - rescale_0_1 - rescale_0_100 - - percent_of_sum - - mean - - z-score - softmax + - z-score ParentAggregation: allOf: - $ref: '#/components/schemas/BucketAggregationBase' @@ -3324,10 +3324,10 @@ components: TermsAggregationExecutionHint: type: string enum: - - map - global_ordinals - global_ordinals_hash - global_ordinals_low_cardinality + - map GoogleNormalizedDistanceHeuristic: type: object properties: @@ -3531,9 +3531,9 @@ components: TTestType: type: string enum: - - paired - - homoscedastic - heteroscedastic + - homoscedastic + - paired TopMetricsAggregation: allOf: - $ref: '#/components/schemas/MetricAggregationBase' diff --git a/spec/schemas/_common.analysis.yaml b/spec/schemas/_common.analysis.yaml index e17a1abf9..e917bf0d0 100644 --- a/spec/schemas/_common.analysis.yaml +++ b/spec/schemas/_common.analysis.yaml @@ -47,8 +47,8 @@ components: tokenizer: type: string required: - - type - tokenizer + - type FingerprintAnalyzer: type: object properties: @@ -69,10 +69,10 @@ components: stopwords_path: type: string required: - - type - max_output_size - preserve_original - separator + - type StopWords: description: |- Language value, such as _arabic_ or _thai_. Defaults to _english_. @@ -114,9 +114,9 @@ components: stopwords_path: type: string required: - - type - language - stem_exclusion + - type Language: type: string enum: @@ -152,8 +152,8 @@ components: - Sorani - Spanish - Swedish - - Turkish - Thai + - Turkish NoriAnalyzer: type: object properties: @@ -177,8 +177,8 @@ components: type: string enum: - discard - - none - mixed + - none PatternAnalyzer: type: object properties: @@ -197,8 +197,8 @@ components: stopwords: $ref: '#/components/schemas/StopWords' required: - - type - pattern + - type SimpleAnalyzer: type: object properties: @@ -261,9 +261,9 @@ components: mode: $ref: '#/components/schemas/IcuNormalizationMode' required: - - type - method - mode + - type IcuNormalizationType: type: string enum: @@ -273,8 +273,8 @@ components: IcuNormalizationMode: type: string enum: - - decompose - compose + - decompose KuromojiAnalyzer: type: object properties: @@ -287,14 +287,14 @@ components: user_dictionary: type: string required: - - type - mode + - type KuromojiTokenizationMode: type: string enum: + - extended - normal - search - - extended SnowballAnalyzer: type: object properties: @@ -309,8 +309,8 @@ components: stopwords: $ref: '#/components/schemas/StopWords' required: - - type - language + - type SnowballLanguage: type: string enum: @@ -410,8 +410,8 @@ components: replacement: type: string required: - - type - pattern + - type IcuNormalizationCharFilter: allOf: - $ref: '#/components/schemas/CharFilterBase' @@ -441,9 +441,9 @@ components: normalize_kanji: type: boolean required: - - type - normalize_kana - normalize_kanji + - type TokenFilter: oneOf: - type: string @@ -556,9 +556,9 @@ components: script: $ref: '_common.yaml#/components/schemas/Script' required: - - type - filter - script + - type DelimitedPayloadTokenFilter: allOf: - $ref: '#/components/schemas/TokenFilterBase' @@ -577,9 +577,9 @@ components: DelimitedPayloadEncoding: type: string enum: - - int - float - identity + - int EdgeNGramTokenFilter: allOf: - $ref: '#/components/schemas/TokenFilterBase' @@ -602,8 +602,8 @@ components: EdgeNGramSide: type: string enum: - - front - back + - front ElisionTokenFilter: allOf: - $ref: '#/components/schemas/TokenFilterBase' @@ -656,8 +656,8 @@ components: longest_only: type: boolean required: - - type - locale + - type HyphenationDecompounderTokenFilter: allOf: - $ref: '#/components/schemas/CompoundWordTokenFilterBase' @@ -710,8 +710,8 @@ components: KeepTypesMode: type: string enum: - - include - exclude + - include KeepWordsTokenFilter: allOf: - $ref: '#/components/schemas/TokenFilterBase' @@ -822,8 +822,8 @@ components: preserve_original: $ref: '_common.yaml#/components/schemas/Stringifiedboolean' required: - - type - filters + - type NGramTokenFilter: allOf: - $ref: '#/components/schemas/TokenFilterBase' @@ -872,8 +872,8 @@ components: preserve_original: $ref: '_common.yaml#/components/schemas/Stringifiedboolean' required: - - type - patterns + - type PatternReplaceTokenFilter: allOf: - $ref: '#/components/schemas/TokenFilterBase' @@ -892,8 +892,8 @@ components: replacement: type: string required: - - type - pattern + - type PorterStemTokenFilter: allOf: - $ref: '#/components/schemas/TokenFilterBase' @@ -917,8 +917,8 @@ components: script: $ref: '_common.yaml#/components/schemas/Script' required: - - type - script + - type RemoveDuplicatesTokenFilter: allOf: - $ref: '#/components/schemas/TokenFilterBase' @@ -980,8 +980,8 @@ components: language: $ref: '#/components/schemas/SnowballLanguage' required: - - type - language + - type StemmerOverrideTokenFilter: allOf: - $ref: '#/components/schemas/TokenFilterBase' @@ -1236,8 +1236,8 @@ components: minimum_length: type: number required: - - type - minimum_length + - type KuromojiReadingFormTokenFilter: allOf: - $ref: '#/components/schemas/TokenFilterBase' @@ -1266,8 +1266,8 @@ components: items: type: string required: - - type - stoptags + - type IcuTokenizer: allOf: - $ref: '#/components/schemas/TokenizerBase' @@ -1280,8 +1280,8 @@ components: rule_files: type: string required: - - type - rule_files + - type TokenizerBase: type: object properties: @@ -1325,8 +1325,8 @@ components: IcuCollationAlternate: type: string enum: - - shifted - non-ignorable + - shifted IcuCollationCaseFirst: type: string enum: @@ -1335,16 +1335,16 @@ components: IcuCollationDecomposition: type: string enum: - - no - identical + - no IcuCollationStrength: type: string enum: + - identical - primary + - quaternary - secondary - tertiary - - quaternary - - identical IcuFoldingTokenFilter: allOf: - $ref: '#/components/schemas/TokenFilterBase' @@ -1371,8 +1371,8 @@ components: name: $ref: '#/components/schemas/IcuNormalizationType' required: - - type - name + - type IcuTransformTokenFilter: allOf: - $ref: '#/components/schemas/TokenFilterBase' @@ -1387,8 +1387,8 @@ components: id: type: string required: - - type - id + - type IcuTransformDirection: type: string enum: @@ -1418,26 +1418,26 @@ components: rule_type: $ref: '#/components/schemas/PhoneticRuleType' required: - - type - encoder - languageset - name_type - rule_type + - type PhoneticEncoder: type: string enum: - - metaphone - - double_metaphone - - soundex - - refined_soundex + - beider_morse - caverphone1 - caverphone2 - cologne - - nysiis - - koelnerphonetik - - haasephonetik - - beider_morse - daitch_mokotoff + - double_metaphone + - haasephonetik + - koelnerphonetik + - metaphone + - nysiis + - refined_soundex + - soundex PhoneticLanguage: type: string enum: @@ -1456,8 +1456,8 @@ components: PhoneticNameType: type: string enum: - - generic - ashkenazi + - generic - sephardic PhoneticRuleType: type: string @@ -1547,8 +1547,8 @@ components: max_token_length: type: number required: - - type - tokenize_on_chars + - type EdgeNGramTokenizer: allOf: - $ref: '#/components/schemas/TokenizerBase' @@ -1569,19 +1569,19 @@ components: items: $ref: '#/components/schemas/TokenChar' required: - - type - max_gram - min_gram - token_chars + - type TokenChar: type: string enum: - - letter + - custom - digit - - whitespace + - letter - punctuation - symbol - - custom + - whitespace KeywordTokenizer: allOf: - $ref: '#/components/schemas/TokenizerBase' @@ -1594,8 +1594,8 @@ components: buffer_size: type: number required: - - type - buffer_size + - type LetterTokenizer: allOf: - $ref: '#/components/schemas/TokenizerBase' @@ -1638,10 +1638,10 @@ components: items: $ref: '#/components/schemas/TokenChar' required: - - type - max_gram - min_gram - token_chars + - type NoriTokenizer: allOf: - $ref: '#/components/schemas/TokenizerBase' @@ -1683,11 +1683,11 @@ components: skip: $ref: '_common.yaml#/components/schemas/Stringifiedinteger' required: - - type - buffer_size - delimiter - reverse - skip + - type StandardTokenizer: allOf: - $ref: '#/components/schemas/TokenizerBase' @@ -1753,8 +1753,8 @@ components: discard_compound_token: type: boolean required: - - type - mode + - type PatternTokenizer: allOf: - $ref: '#/components/schemas/TokenizerBase' diff --git a/spec/schemas/_common.mapping.yaml b/spec/schemas/_common.mapping.yaml index 8c6845266..18ef5472f 100644 --- a/spec/schemas/_common.mapping.yaml +++ b/spec/schemas/_common.mapping.yaml @@ -135,10 +135,10 @@ components: DynamicMapping: type: string enum: - - strict + - 'false' - runtime + - strict - 'true' - - 'false' DynamicTemplate: type: object properties: @@ -334,23 +334,23 @@ components: OnScriptError: type: string enum: - - fail - continue + - fail TimeSeriesMetricType: type: string enum: - - gauge - counter - - summary + - gauge - histogram - position + - summary IndexOptions: type: string enum: - docs - freqs - - positions - offsets + - positions TextIndexPrefixes: type: object properties: @@ -365,12 +365,12 @@ components: type: string enum: - no - - yes - with_offsets - with_positions - with_positions_offsets - with_positions_offsets_payloads - with_positions_payloads + - yes JoinProperty: allOf: - $ref: '#/components/schemas/PropertyBase' @@ -638,9 +638,9 @@ components: time_series_metric: $ref: '#/components/schemas/TimeSeriesMetricType' required: - - type - default_metric - metrics + - type DenseVectorProperty: allOf: - $ref: '#/components/schemas/PropertyBase' @@ -659,8 +659,8 @@ components: index_options: $ref: '#/components/schemas/DenseVectorIndexOptions' required: - - type - dims + - type DenseVectorIndexOptions: type: object properties: @@ -671,9 +671,9 @@ components: ef_construction: type: number required: - - type - - m - ef_construction + - m + - type SparseVectorProperty: allOf: - $ref: '#/components/schemas/PropertyBase' @@ -921,8 +921,8 @@ components: GeoOrientation: type: string enum: - - right - left + - right GeoStrategy: type: string enum: @@ -1187,8 +1187,8 @@ components: MatchType: type: string enum: - - simple - regex + - simple FieldNamesField: type: object properties: diff --git a/spec/schemas/_common.query_dsl.yaml b/spec/schemas/_common.query_dsl.yaml index 7c4490df8..7ad1e78ff 100644 --- a/spec/schemas/_common.query_dsl.yaml +++ b/spec/schemas/_common.query_dsl.yaml @@ -287,8 +287,8 @@ components: positive: $ref: '#/components/schemas/QueryContainer' required: - - negative_boost - negative + - negative_boost - positive CommonTermsQuery: allOf: @@ -339,13 +339,13 @@ components: CombinedFieldsOperator: type: string enum: - - or - and + - or CombinedFieldsZeroTerms: type: string enum: - - none - all + - none ConstantScoreQuery: allOf: - $ref: '#/components/schemas/QueryBase' @@ -393,9 +393,9 @@ components: field: $ref: '_common.yaml#/components/schemas/Field' required: + - field - origin - pivot - - field DateDistanceFeatureQuery: allOf: - $ref: '#/components/schemas/DistanceFeatureQueryBaseDateMathDuration' @@ -412,9 +412,9 @@ components: field: $ref: '_common.yaml#/components/schemas/Field' required: + - field - origin - pivot - - field ExistsQuery: allOf: - $ref: '#/components/schemas/QueryBase' @@ -449,12 +449,12 @@ components: FunctionBoostMode: type: string enum: - - multiply - - replace - - sum - avg - max - min + - multiply + - replace + - sum FunctionScoreContainer: allOf: - type: object @@ -496,9 +496,9 @@ components: MultiValueMode: type: string enum: - - min - - max - avg + - max + - min - sum NumericDecayFunction: allOf: @@ -528,16 +528,16 @@ components: FieldValueFactorModifier: type: string enum: - - none - - log - - log1p - - log2p - ln - ln1p - ln2p - - square - - sqrt + - log + - log1p + - log2p + - none - reciprocal + - sqrt + - square RandomScoreFunction: type: object properties: @@ -557,12 +557,12 @@ components: FunctionScoreMode: type: string enum: - - multiply - - sum - avg - first - max - min + - multiply + - sum FuzzyQuery: allOf: - $ref: '#/components/schemas/QueryBase' @@ -606,8 +606,8 @@ components: GeoExecution: type: string enum: - - memory - indexed + - memory GeoValidationMethod: type: string enum: @@ -690,11 +690,11 @@ components: ChildScoreMode: type: string enum: - - none - avg - - sum - max - min + - none + - sum HasParentQuery: allOf: - $ref: '#/components/schemas/QueryBase' @@ -1187,11 +1187,11 @@ components: type: string enum: - best_fields - - most_fields + - bool_prefix - cross_fields + - most_fields - phrase - phrase_prefix - - bool_prefix NestedQuery: allOf: - $ref: '#/components/schemas/QueryBase' @@ -1429,9 +1429,9 @@ components: RangeRelation: type: string enum: - - within - contains - intersects + - within NumberRangeQuery: allOf: - $ref: '#/components/schemas/RangeQueryBase' @@ -1512,8 +1512,8 @@ components: description: Configurable Exponent. type: number required: - - pivot - exponent + - pivot RegexpQuery: allOf: - $ref: '#/components/schemas/QueryBase' @@ -1549,9 +1549,9 @@ components: match_criteria: type: object required: + - match_criteria - organic - ruleset_id - - match_criteria ScriptQuery: allOf: - $ref: '#/components/schemas/QueryBase' @@ -1640,19 +1640,19 @@ components: SimpleQueryStringFlag: type: string enum: - - NONE + - ALL - AND + - ESCAPE + - FUZZY + - NEAR + - NONE - NOT - OR - - PREFIX - PHRASE - PRECEDENCE - - ESCAPE - - WHITESPACE - - FUZZY - - NEAR + - PREFIX - SLOP - - ALL + - WHITESPACE SpanContainingQuery: allOf: - $ref: '#/components/schemas/QueryBase' diff --git a/spec/schemas/_common.yaml b/spec/schemas/_common.yaml index 739eb855a..858f1d60e 100644 --- a/spec/schemas/_common.yaml +++ b/spec/schemas/_common.yaml @@ -64,10 +64,10 @@ components: right: type: number required: - - top - bottom - left - right + - top TopLeftBottomRightGeoBounds: type: object properties: @@ -76,8 +76,8 @@ components: bottom_right: $ref: '#/components/schemas/GeoLocation' required: - - top_left - bottom_right + - top_left GeoLocation: description: |- A latitude/longitude as a 2 dimensional point. It can be represented in various ways: @@ -121,8 +121,8 @@ components: bottom_left: $ref: '#/components/schemas/GeoLocation' required: - - top_right - bottom_left + - top_right WktGeoBounds: type: object properties: @@ -193,8 +193,8 @@ components: items: type: number required: - - type - coordinates + - type ClusterStatistics: type: object properties: @@ -215,12 +215,12 @@ components: additionalProperties: $ref: '#/components/schemas/ClusterDetails' required: + - failed + - partial + - running - skipped - successful - total - - running - - partial - - failed ClusterDetails: type: object properties: @@ -239,17 +239,17 @@ components: items: $ref: '#/components/schemas/ShardFailure' required: - - status - indices + - status - timed_out ClusterSearchStatus: type: string enum: - - running - - successful + - failed - partial + - running - skipped - - failed + - successful DurationValueUnitMillis: allOf: - $ref: '#/components/schemas/UnitMillis' @@ -354,23 +354,23 @@ components: type: string enum: - all - - open - closed - hidden - none + - open VersionString: type: string SearchType: type: string enum: - - query_then_fetch - dfs_query_then_fetch + - query_then_fetch SuggestMode: type: string enum: + - always - missing - popular - - always MinimumShouldMatch: description: The minimum number of terms that should match as integer, percentage or range oneOf: @@ -403,10 +403,10 @@ components: ScriptLanguage: type: string enum: - - painless - expression - - mustache - java + - mustache + - painless ScriptBase: type: object properties: @@ -497,23 +497,23 @@ components: SortMode: type: string enum: - - min - - max - - sum - avg + - max - median + - min + - sum DistanceUnit: type: string enum: - - in + - cm - ft - - yd - - mi - - nmi + - in - km - m - - cm + - mi - mm + - nmi + - yd ScriptSort: type: object properties: @@ -532,8 +532,8 @@ components: ScriptSortType: type: string enum: - - string - number + - string - version NestedSortValue: type: object @@ -559,10 +559,10 @@ components: VersionType: type: string enum: - - internal - external - external_gte - force + - internal TimeZone: type: string DateFormat: @@ -656,8 +656,8 @@ components: Refresh: type: string enum: - - 'true' - 'false' + - 'true' - wait_for WaitForActiveShards: oneOf: @@ -706,16 +706,16 @@ components: type: string enum: - b + - g + - gb - k - kb - m - mb - - g - - gb - - t - - tb - p - pb + - t + - tb ByteSize: oneOf: - type: number @@ -750,25 +750,25 @@ components: TimeUnit: type: string enum: - - nanos + - d + - h + - m - micros - ms + - nanos - s - - m - - h - - d HealthStatus: type: string enum: - green - - yellow - red + - yellow HealthStatusCapitalized: type: string enum: - GREEN - - YELLOW - RED + - YELLOW ScheduleTimeOfDay: description: A time of day, expressed either as `hh:mm`, `noon`, `midnight`, or an hour/minutes structure. oneOf: @@ -833,15 +833,15 @@ components: DFIIndependenceMeasure: type: string enum: - - standardized - - saturated - chisquared + - saturated + - standardized DFRAfterEffect: type: string enum: - - no - b - l + - no DFRBasicModel: type: string enum: @@ -855,10 +855,10 @@ components: Normalization: type: string enum: - - no - h1 - h2 - h3 + - no - z IBDistribution: type: string @@ -885,12 +885,12 @@ components: WaitForEvents: type: string enum: - - immediate - - urgent - high - - normal - - low + - immediate - languid + - low + - normal + - urgent DataStreamName: type: string Metrics: @@ -1007,8 +1007,8 @@ components: download: $ref: '#/components/schemas/RemoteStoreDownloadStats' required: - - upload - download + - upload RemoteStoreTranslogStats: type: object properties: @@ -1025,8 +1025,8 @@ components: total_upload_size: $ref: '#/components/schemas/RemoteStoreTranslogUploadTotalUploadSizeStats' required: - - total_uploads - total_upload_size + - total_uploads RemoteStoreTranslogUploadTotalUploadsStats: type: object description: The number of syncs to the remote translog store. @@ -1231,8 +1231,8 @@ components: - norms_memory_in_bytes - points_memory_in_bytes - stored_fields_memory_in_bytes - - terms_memory_in_bytes - term_vectors_memory_in_bytes + - terms_memory_in_bytes - version_map_memory_in_bytes StoreStats: type: object @@ -1255,8 +1255,8 @@ components: This includes the size of shards not stored fully on the nodes, such as the cache for partially mounted indices. type: number required: - - size_in_bytes - reserved_in_bytes + - size_in_bytes PluginStats: type: object properties: @@ -1286,11 +1286,11 @@ components: required: - classname - description - - opensearch_version - extended_plugins - has_native_controller - java_version - name + - opensearch_version - version NodeStatistics: type: object @@ -1309,9 +1309,9 @@ components: description: Number of nodes that rejected the request or failed to respond. If this value is not 0, a reason for the rejection or failure is included in the response. type: number required: - - total - - successful - failed + - successful + - total WriteResponseBase: type: object properties: @@ -1335,18 +1335,18 @@ components: - _id - _index - _primary_term - - result - _seq_no - _shards - _version + - result Result: type: string enum: - created - - updated - deleted - - not_found - noop + - not_found + - updated Conflicts: type: string enum: @@ -1406,10 +1406,10 @@ components: reason: $ref: '#/components/schemas/ErrorCause' required: - - task_id - node_id - - status - reason + - status + - task_id InlineGet: type: object properties: @@ -1459,8 +1459,8 @@ components: OpType: type: string enum: - - index - create + - index ShardsOperationResponseBase: type: object properties: @@ -1565,16 +1565,16 @@ components: write_load: type: number required: - - index_current - delete_current - delete_time_in_millis - delete_total + - index_current + - index_failed + - index_time_in_millis + - index_total - is_throttled - noop_update_total - throttle_time_in_millis - - index_time_in_millis - - index_total - - index_failed MergesStats: type: object properties: @@ -1837,18 +1837,18 @@ components: avg_size_in_bytes: type: number required: + - avg_size_in_bytes + - avg_time_in_millis - total_operations - - total_time_in_millis - total_size_in_bytes - - avg_time_in_millis - - avg_size_in_bytes + - total_time_in_millis GeoShapeRelation: type: string enum: - - intersects + - contains - disjoint + - intersects - within - - contains StringifiedVersionNumber: description: |- Some APIs will return values such as numbers also as a string (notably epoch timestamps). This behavior @@ -1862,9 +1862,9 @@ components: ActionStatusOptions: type: string enum: - - success - failure - simulated + - success - throttled NodeAttributes: type: object @@ -1899,21 +1899,21 @@ components: NodeRole: type: string enum: - - master + - client + - cluster_manager + - coordinating_only - data - data_cold - data_content - data_frozen - data_hot - data_warm - - client - ingest + - master - ml - - voting_only - - transform - remote_cluster_client - - coordinating_only - - cluster_manager + - transform + - voting_only HttpHeaders: type: object additionalProperties: @@ -2000,10 +2000,10 @@ components: relocation_failure_info: $ref: '#/components/schemas/RelocationFailureInfo' required: - - state + - index - primary - shard - - index + - state RelocationFailureInfo: type: object properties: @@ -2060,9 +2060,9 @@ components: can_match: $ref: '#/components/schemas/uint' required: + - can_match - dfs_pre_query - - query - - fetch - dfs_query - expand - - can_match + - fetch + - query diff --git a/spec/schemas/_core.get.yaml b/spec/schemas/_core.get.yaml index b676d3212..947aad4fc 100644 --- a/spec/schemas/_core.get.yaml +++ b/spec/schemas/_core.get.yaml @@ -30,6 +30,6 @@ components: _version: $ref: '_common.yaml#/components/schemas/VersionNumber' required: + - _id - _index - found - - _id diff --git a/spec/schemas/_core.get_script_context.yaml b/spec/schemas/_core.get_script_context.yaml index ffc62a066..c71c99689 100644 --- a/spec/schemas/_core.get_script_context.yaml +++ b/spec/schemas/_core.get_script_context.yaml @@ -31,8 +31,8 @@ components: $ref: '#/components/schemas/ContextMethodParam' required: - name - - return_type - params + - return_type ContextMethodParam: type: object properties: diff --git a/spec/schemas/_core.mget.yaml b/spec/schemas/_core.mget.yaml index 997832e8e..b75afa420 100644 --- a/spec/schemas/_core.mget.yaml +++ b/spec/schemas/_core.mget.yaml @@ -39,6 +39,6 @@ components: _index: $ref: '_common.yaml#/components/schemas/IndexName' required: - - error - _id - _index + - error diff --git a/spec/schemas/_core.msearch.yaml b/spec/schemas/_core.msearch.yaml index 4e820a3ce..23bca730b 100644 --- a/spec/schemas/_core.msearch.yaml +++ b/spec/schemas/_core.msearch.yaml @@ -184,5 +184,5 @@ components: items: $ref: '#/components/schemas/ResponseItem' required: - - took - responses + - took diff --git a/spec/schemas/_core.rank_eval.yaml b/spec/schemas/_core.rank_eval.yaml index 2be37ba41..171f44789 100644 --- a/spec/schemas/_core.rank_eval.yaml +++ b/spec/schemas/_core.rank_eval.yaml @@ -136,10 +136,10 @@ components: additionalProperties: type: object required: - - metric_score - - unrated_docs - hits - metric_details + - metric_score + - unrated_docs UnratedDocument: type: object properties: diff --git a/spec/schemas/_core.reindex_rethrottle.yaml b/spec/schemas/_core.reindex_rethrottle.yaml index 28514fecb..1fadb4aa0 100644 --- a/spec/schemas/_core.reindex_rethrottle.yaml +++ b/spec/schemas/_core.reindex_rethrottle.yaml @@ -44,13 +44,13 @@ components: - action - cancellable - description + - headers - id - node - running_time_in_nanos - start_time_in_millis - status - type - - headers ReindexStatus: type: object properties: diff --git a/spec/schemas/_core.search.yaml b/spec/schemas/_core.search.yaml index 29add273a..5ec0b7813 100644 --- a/spec/schemas/_core.search.yaml +++ b/spec/schemas/_core.search.yaml @@ -101,8 +101,8 @@ components: sort: $ref: '_common.yaml#/components/schemas/SortResults' required: - - _index - _id + - _index InnerHitsResult: type: object properties: @@ -382,20 +382,20 @@ components: - advance_count - build_scorer - build_scorer_count + - compute_max_score + - compute_max_score_count - create_weight - create_weight_count - match - match_count - - shallow_advance - - shallow_advance_count - next_doc - next_doc_count - score - score_count - - compute_max_score - - compute_max_score_count - set_min_competitive_score - set_min_competitive_score_count + - shallow_advance + - shallow_advance_count FetchProfile: type: object properties: @@ -414,10 +414,10 @@ components: items: $ref: '#/components/schemas/FetchProfile' required: - - type + - breakdown - description - time_in_nanos - - breakdown + - type FetchProfileBreakdown: type: object properties: @@ -538,8 +538,8 @@ components: collate_match: type: boolean required: - - text - score + - text TermSuggest: allOf: - $ref: '#/components/schemas/SuggestBase' @@ -567,9 +567,9 @@ components: collate_match: type: boolean required: - - text - - score - freq + - score + - text TrackHits: description: |- Number of hits matching the query to count accurately. If true, the exact @@ -761,8 +761,8 @@ components: HighlighterType: type: string enum: - - plain - fvh + - plain - unified BoundaryScanner: type: string @@ -885,7 +885,7 @@ components: terminated_early: type: boolean required: - - took - - timed_out - _shards - hits + - timed_out + - took diff --git a/spec/schemas/cluster._common.yaml b/spec/schemas/cluster._common.yaml index 5d7085959..8acd74b43 100644 --- a/spec/schemas/cluster._common.yaml +++ b/spec/schemas/cluster._common.yaml @@ -14,8 +14,8 @@ components: component_template: $ref: '#/components/schemas/ComponentTemplateNode' required: - - name - component_template + - name ComponentTemplateNode: type: object properties: diff --git a/spec/schemas/cluster.allocation_explain.yaml b/spec/schemas/cluster.allocation_explain.yaml index d88c8a1e4..21157b311 100644 --- a/spec/schemas/cluster.allocation_explain.yaml +++ b/spec/schemas/cluster.allocation_explain.yaml @@ -9,14 +9,14 @@ components: Decision: type: string enum: - - yes - - no - - worse_balance - - throttled - - awaiting_info - allocation_delayed - - no_valid_shard_copy + - awaiting_info + - no - no_attempt + - no_valid_shard_copy + - throttled + - worse_balance + - yes AllocationDecision: type: object properties: @@ -33,10 +33,10 @@ components: AllocationExplainDecision: type: string enum: + - ALWAYS - NO - - YES - THROTTLE - - ALWAYS + - YES ClusterInfo: type: object properties: @@ -62,9 +62,9 @@ components: $ref: '#/components/schemas/ReservedSize' required: - nodes - - shard_sizes - - shard_paths - reserved_sizes + - shard_paths + - shard_sizes NodeDiskUsage: type: object properties: @@ -75,9 +75,9 @@ components: most_available: $ref: '#/components/schemas/DiskUsage' required: - - node_name - least_available - most_available + - node_name DiskUsage: type: object properties: @@ -94,11 +94,11 @@ components: used_disk_percent: type: number required: + - free_bytes + - free_disk_percent - path - total_bytes - used_bytes - - free_bytes - - free_disk_percent - used_disk_percent ReservedSize: type: object @@ -116,8 +116,8 @@ components: required: - node_id - path - - total - shards + - total CurrentNode: type: object properties: @@ -134,9 +134,9 @@ components: weight_ranking: type: number required: + - attributes - id - name - - attributes - transport_address - weight_ranking NodeAllocationExplanation: @@ -215,18 +215,18 @@ components: UnassignedInformationReason: type: string enum: - - INDEX_CREATED + - ALLOCATION_FAILED - CLUSTER_RECOVERED - - INDEX_REOPENED - DANGLING_INDEX_IMPORTED - - NEW_INDEX_RESTORED - EXISTING_INDEX_RESTORED - - REPLICA_ADDED - - ALLOCATION_FAILED - - NODE_LEFT - - REROUTE_CANCELLED - - REINITIALIZED - - REALLOCATED_REPLICA - - PRIMARY_FAILED - FORCED_EMPTY_PRIMARY + - INDEX_CREATED + - INDEX_REOPENED - MANUAL_ALLOCATION + - NEW_INDEX_RESTORED + - NODE_LEFT + - PRIMARY_FAILED + - REALLOCATED_REPLICA + - REINITIALIZED + - REPLICA_ADDED + - REROUTE_CANCELLED diff --git a/spec/schemas/cluster.health.yaml b/spec/schemas/cluster.health.yaml index 6617140c2..a479ca95d 100644 --- a/spec/schemas/cluster.health.yaml +++ b/spec/schemas/cluster.health.yaml @@ -107,10 +107,10 @@ components: Level: type: string enum: + - awareness_attributes - cluster - indices - shards - - awareness_attributes ShardHealthStats: type: object properties: diff --git a/spec/schemas/cluster.remote_info.yaml b/spec/schemas/cluster.remote_info.yaml index 71af6ad6d..d0fb00ac5 100644 --- a/spec/schemas/cluster.remote_info.yaml +++ b/spec/schemas/cluster.remote_info.yaml @@ -35,13 +35,13 @@ components: items: type: string required: - - mode - connected + - initial_connect_timeout - max_connections_per_cluster + - mode - num_nodes_connected - - initial_connect_timeout - - skip_unavailable - seeds + - skip_unavailable ClusterRemoteProxyInfo: type: object properties: @@ -64,11 +64,11 @@ components: max_proxy_socket_connections: type: number required: - - mode - connected - initial_connect_timeout - - skip_unavailable + - max_proxy_socket_connections + - mode + - num_proxy_sockets_connected - proxy_address - server_name - - num_proxy_sockets_connected - - max_proxy_socket_connections + - skip_unavailable diff --git a/spec/schemas/cluster.reroute.yaml b/spec/schemas/cluster.reroute.yaml index 52dcc8221..d6a6c9d0e 100644 --- a/spec/schemas/cluster.reroute.yaml +++ b/spec/schemas/cluster.reroute.yaml @@ -32,8 +32,8 @@ components: type: boolean required: - index - - shard - node + - shard CommandMoveAction: type: object properties: @@ -48,9 +48,9 @@ components: description: The node to move the shard to type: string required: + - from_node - index - shard - - from_node - to_node CommandAllocateReplicaAction: type: object @@ -63,8 +63,8 @@ components: type: string required: - index - - shard - node + - shard CommandAllocatePrimaryAction: type: object properties: @@ -78,10 +78,10 @@ components: description: If a node which has a copy of the data rejoins the cluster later on, that data will be deleted. To ensure that these implications are well-understood, this command requires the flag accept_data_loss to be explicitly set to true type: boolean required: + - accept_data_loss - index - - shard - node - - accept_data_loss + - shard RerouteExplanation: type: object properties: diff --git a/spec/schemas/cluster.state.yaml b/spec/schemas/cluster.state.yaml index 28ea2febd..9b02836dc 100644 --- a/spec/schemas/cluster.state.yaml +++ b/spec/schemas/cluster.state.yaml @@ -9,12 +9,12 @@ components: Metric: type: string enum: + - _all - blocks + - cluster_manager_node + - master_node - metadata - nodes - - routing_table - routing_nodes - - master_node - - cluster_manager_node + - routing_table - version - - _all diff --git a/spec/schemas/cluster.stats.yaml b/spec/schemas/cluster.stats.yaml index e8896812c..43b8bdfe4 100644 --- a/spec/schemas/cluster.stats.yaml +++ b/spec/schemas/cluster.stats.yaml @@ -66,11 +66,11 @@ components: - count - docs - fielddata + - mappings - query_cache - segments - shards - store - - mappings CharFilterTypes: type: object properties: @@ -147,9 +147,9 @@ components: description: The number of fields that declare a script. type: number required: - - name - count - index_count + - name ClusterIndicesShards: type: object properties: diff --git a/spec/schemas/dangling_indices.list_dangling_indices.yaml b/spec/schemas/dangling_indices.list_dangling_indices.yaml index 2dd47e5b4..b9775aa58 100644 --- a/spec/schemas/dangling_indices.list_dangling_indices.yaml +++ b/spec/schemas/dangling_indices.list_dangling_indices.yaml @@ -18,7 +18,7 @@ components: node_ids: $ref: '_common.yaml#/components/schemas/Ids' required: + - creation_date_millis - index_name - index_uuid - - creation_date_millis - node_ids diff --git a/spec/schemas/indices._common.yaml b/spec/schemas/indices._common.yaml index 96f0173cb..8cf004a9c 100644 --- a/spec/schemas/indices._common.yaml +++ b/spec/schemas/indices._common.yaml @@ -185,19 +185,19 @@ components: SegmentSortMode: type: string enum: - - min - max + - min SegmentSortMissing: type: string enum: - - _last - _first + - _last IndexCheckOnStartup: type: string enum: - - 'true' - - 'false' - checksum + - 'false' + - 'true' Merge: type: object properties: @@ -296,9 +296,9 @@ components: type: string enum: - all - - primaries - new_primaries - none + - primaries IndexRoutingAllocationInclude: type: object properties: @@ -329,9 +329,9 @@ components: type: string enum: - all + - none - primaries - replicas - - none IndexSettingsLifecycle: type: object properties: @@ -388,8 +388,8 @@ components: TranslogDurability: type: string enum: - - request - async + - request TranslogRetention: type: object properties: @@ -685,9 +685,9 @@ components: type: string enum: - fs - - niofs - - mmapfs - hybridfs + - mmapfs + - niofs NumericFielddata: type: object properties: @@ -895,8 +895,8 @@ components: ManagedBy: type: string enum: - - Index Lifecycle Management - Data stream lifecycle + - Index Lifecycle Management - Unmanaged DataStreamIndex: type: object diff --git a/spec/schemas/indices.add_block.yaml b/spec/schemas/indices.add_block.yaml index 17a7301bd..7fdc4bb9f 100644 --- a/spec/schemas/indices.add_block.yaml +++ b/spec/schemas/indices.add_block.yaml @@ -21,5 +21,5 @@ components: blocked: type: boolean required: - - name - blocked + - name diff --git a/spec/schemas/indices.get_index_template.yaml b/spec/schemas/indices.get_index_template.yaml index c8b16d0e5..41baff1f4 100644 --- a/spec/schemas/indices.get_index_template.yaml +++ b/spec/schemas/indices.get_index_template.yaml @@ -14,5 +14,5 @@ components: index_template: $ref: 'indices._common.yaml#/components/schemas/IndexTemplate' required: - - name - index_template + - name diff --git a/spec/schemas/indices.resolve_index.yaml b/spec/schemas/indices.resolve_index.yaml index 72a66cac8..6e3b096a8 100644 --- a/spec/schemas/indices.resolve_index.yaml +++ b/spec/schemas/indices.resolve_index.yaml @@ -22,8 +22,8 @@ components: data_stream: $ref: '_common.yaml#/components/schemas/DataStreamName' required: - - name - attributes + - name ResolveIndexAliasItem: type: object properties: @@ -32,8 +32,8 @@ components: indices: $ref: '_common.yaml#/components/schemas/Indices' required: - - name - indices + - name ResolveIndexDataStreamsItem: type: object properties: @@ -44,6 +44,6 @@ components: backing_indices: $ref: '_common.yaml#/components/schemas/Indices' required: + - backing_indices - name - timestamp_field - - backing_indices diff --git a/spec/schemas/indices.segments.yaml b/spec/schemas/indices.segments.yaml index 1cfabe0a8..e964e9931 100644 --- a/spec/schemas/indices.segments.yaml +++ b/spec/schemas/indices.segments.yaml @@ -34,8 +34,8 @@ components: $ref: '#/components/schemas/Segment' required: - num_committed_segments - - routing - num_search_segments + - routing - segments ShardSegmentRouting: type: object @@ -79,7 +79,7 @@ components: - compound - deleted_docs - generation + - num_docs - search - size_in_bytes - - num_docs - version diff --git a/spec/schemas/indices.shard_stores.yaml b/spec/schemas/indices.shard_stores.yaml index 770d20032..a6a1a6f2e 100644 --- a/spec/schemas/indices.shard_stores.yaml +++ b/spec/schemas/indices.shard_stores.yaml @@ -9,10 +9,10 @@ components: ShardStoreStatus: type: string enum: + - all - green - - yellow - red - - all + - yellow IndicesShardStores: type: object properties: diff --git a/spec/schemas/indices.simulate_template.yaml b/spec/schemas/indices.simulate_template.yaml index e2304881e..0265ecc2d 100644 --- a/spec/schemas/indices.simulate_template.yaml +++ b/spec/schemas/indices.simulate_template.yaml @@ -16,8 +16,8 @@ components: items: type: string required: - - name - index_patterns + - name Template: type: object properties: diff --git a/spec/schemas/indices.stats.yaml b/spec/schemas/indices.stats.yaml index c65ef44eb..45076740f 100644 --- a/spec/schemas/indices.stats.yaml +++ b/spec/schemas/indices.stats.yaml @@ -228,9 +228,9 @@ components: items: $ref: '#/components/schemas/ShardLease' required: + - leases - primary_term - version - - leases ShardLease: type: object properties: @@ -245,8 +245,8 @@ components: required: - id - retaining_seq_no - - timestamp - source + - timestamp ShardRouting: type: object properties: @@ -268,10 +268,10 @@ components: ShardRoutingState: type: string enum: - - UNASSIGNED - INITIALIZING - - STARTED - RELOCATING + - STARTED + - UNASSIGNED ShardSequenceNumber: type: object properties: @@ -288,5 +288,5 @@ components: IndexMetadataState: type: string enum: - - open - close + - open diff --git a/spec/schemas/ingest._common.yaml b/spec/schemas/ingest._common.yaml index d3a96b0a3..820b17e33 100644 --- a/spec/schemas/ingest._common.yaml +++ b/spec/schemas/ingest._common.yaml @@ -228,13 +228,13 @@ components: ConvertType: type: string enum: + - auto + - boolean + - double + - float - integer - long - - float - - double - string - - boolean - - auto DateProcessor: allOf: - $ref: '#/components/schemas/ProcessorBase' @@ -404,8 +404,8 @@ components: JsonProcessorConflictStrategy: type: string enum: - - replace - merge + - replace UserAgentProcessor: allOf: - $ref: '#/components/schemas/ProcessorBase' @@ -430,16 +430,16 @@ components: UserAgentProperty: type: string enum: - - NAME + - BUILD + - DEVICE - MAJOR - MINOR - - PATCH + - NAME - OS - - OS_NAME - OS_MAJOR - OS_MINOR - - DEVICE - - BUILD + - OS_NAME + - PATCH KeyValueProcessor: allOf: - $ref: '#/components/schemas/ProcessorBase' @@ -887,5 +887,5 @@ components: type: string description: A brief description of the processor. required: - - model_id - field_map + - model_id diff --git a/spec/schemas/knn._common.yaml b/spec/schemas/knn._common.yaml index dc1500b87..9b3c1b44a 100644 --- a/spec/schemas/knn._common.yaml +++ b/spec/schemas/knn._common.yaml @@ -16,12 +16,12 @@ components: type: string description: Search operation type. enum: - - query_then_fetch - dfs_query_then_fetch + - query_then_fetch SuggestMode: type: string description: Specify suggest mode. enum: + - always - missing - popular - - always diff --git a/spec/schemas/ml._common.yaml b/spec/schemas/ml._common.yaml index fa2c3f998..a8513754c 100644 --- a/spec/schemas/ml._common.yaml +++ b/spec/schemas/ml._common.yaml @@ -16,8 +16,8 @@ components: items: $ref: '#/components/schemas/SearchModelHitsHit' required: - - total - hits + - total HitsTotal: type: object properties: @@ -28,8 +28,8 @@ components: type: string description: The relation. required: - - value - relation + - value SearchModelHitsHit: type: object properties: diff --git a/spec/schemas/nodes._common.yaml b/spec/schemas/nodes._common.yaml index 8f795d129..7119fc65c 100644 --- a/spec/schemas/nodes._common.yaml +++ b/spec/schemas/nodes._common.yaml @@ -945,6 +945,6 @@ components: type: string description: The type to sample. enum: + - block - cpu - wait - - block diff --git a/spec/schemas/nodes.info.yaml b/spec/schemas/nodes.info.yaml index 61a9512d4..a44d68d05 100644 --- a/spec/schemas/nodes.info.yaml +++ b/spec/schemas/nodes.info.yaml @@ -9,19 +9,19 @@ components: Metric: type: string enum: - - settings + - _all + - aggregations + - http + - indices + - ingest + - jvm - os + - plugins - process - - jvm + - search_pipelines + - settings - thread_pool - transport - - http - - plugins - - ingest - - aggregations - - indices - - search_pipelines - - _all ResponseBase: allOf: - $ref: 'nodes._common.yaml#/components/schemas/NodesResponseBase' @@ -166,7 +166,9 @@ components: items: type: string required: + - bundled_jdk - gc_collectors + - input_arguments - mem - memory_pools - pid @@ -175,8 +177,6 @@ components: - vm_name - vm_vendor - vm_version - - bundled_jdk - - input_arguments NodeInfoJvmMemory: type: object properties: @@ -349,11 +349,11 @@ components: index: $ref: '#/components/schemas/NodeInfoSettingsIndex' required: + - client - cluster + - http - node - path - - client - - http - transport NodeInfoSettingsCluster: type: object @@ -398,8 +398,8 @@ components: max_local_storage_nodes: type: string required: - - name - attr + - name NodeInfoPath: type: object properties: @@ -416,8 +416,8 @@ components: items: type: string required: - - logs - home + - logs NodeInfoRepositories: type: object properties: @@ -664,8 +664,8 @@ components: type: string required: - bound_address - - publish_address - profiles + - publish_address NodeInfoIngest: type: object properties: @@ -703,5 +703,5 @@ components: items: $ref: '#/components/schemas/NodeInfoIngestProcessor' required: - - response_processors - - request_processors \ No newline at end of file + - request_processors + - response_processors \ No newline at end of file diff --git a/spec/schemas/nodes.stats.yaml b/spec/schemas/nodes.stats.yaml index 507b9abd2..63d877d34 100644 --- a/spec/schemas/nodes.stats.yaml +++ b/spec/schemas/nodes.stats.yaml @@ -9,40 +9,40 @@ components: Metric: type: string enum: + - _all - breaker + - discovery - fs - http + - indexing_pressure - indices - jvm - os - process + - search_pipeline - thread_pool - transport - - discovery - - indexing_pressure - - search_pipeline - - _all IndexMetric: type: string enum: - - store - - indexing + - _all + - completion + - docs + - fielddata + - flush - get - - search + - indexing - merge - - flush - - refresh - query_cache - - fielddata - - docs - - warmer - - completion + - recovery + - refresh + - request_cache + - search - segments - - translog + - store - suggest - - request_cache - - recovery - - _all + - translog + - warmer ResponseBase: allOf: - $ref: 'nodes._common.yaml#/components/schemas/NodesResponseBase' diff --git a/spec/schemas/nodes.usage.yaml b/spec/schemas/nodes.usage.yaml index 06a453bbb..bf397bfbf 100644 --- a/spec/schemas/nodes.usage.yaml +++ b/spec/schemas/nodes.usage.yaml @@ -9,8 +9,8 @@ components: Metric: type: string enum: - - rest_actions - _all + - rest_actions ResponseBase: allOf: - $ref: 'nodes._common.yaml#/components/schemas/NodesResponseBase' @@ -41,7 +41,7 @@ components: additionalProperties: type: object required: + - aggregations - rest_actions - since - timestamp - - aggregations diff --git a/spec/schemas/notifications._common.yaml b/spec/schemas/notifications._common.yaml index e581f0552..55d1a0040 100644 --- a/spec/schemas/notifications._common.yaml +++ b/spec/schemas/notifications._common.yaml @@ -34,36 +34,36 @@ components: RestStatus: type: string enum: + - accepted - continue - - switching_protocols - - ok - created - - accepted - - non_authoritative_information - - no_content - - reset_content - - partial_content + - found + - moved_permanently - multi_status - multiple_choices - - moved_permanently - - found - - see_other + - no_content + - non_authoritative_information - not_modified - - use_proxy + - ok + - partial_content + - reset_content + - see_other + - switching_protocols - temporary_redirect + - use_proxy NotificationConfigType: type: string description: Type of notification configuration. enum: - - slack - chime - - microsoft_teams - - webhook - email - - sns + - email_group + - microsoft_teams - ses_account + - slack - smtp_account - - email_group + - sns + - webhook TotalHitRelation: type: string enum: @@ -151,9 +151,9 @@ components: HttpMethodType: type: string enum: + - PATCH - POST - PUT - - PATCH HeaderParamsMap: type: object additionalProperties: @@ -179,9 +179,9 @@ components: EmailEncryptionMethod: type: string enum: + - none - ssl - start_tls - - none SesAccount: type: object properties: @@ -255,9 +255,9 @@ components: SeverityType: type: string enum: + - critical - high - info - - critical EventStatus: type: object properties: diff --git a/spec/schemas/search_pipeline._common.yaml b/spec/schemas/search_pipeline._common.yaml index 77f94f066..94fd37470 100644 --- a/spec/schemas/search_pipeline._common.yaml +++ b/spec/schemas/search_pipeline._common.yaml @@ -217,8 +217,8 @@ components: ScoreNormalizationTechnique: type: string enum: - - min_max - l2 + - min_max ScoreCombination: type: object properties: diff --git a/spec/schemas/snapshot._common.yaml b/spec/schemas/snapshot._common.yaml index 2c27de058..01433c0fd 100644 --- a/spec/schemas/snapshot._common.yaml +++ b/spec/schemas/snapshot._common.yaml @@ -95,9 +95,9 @@ components: max_segments_per_shard: type: number required: + - max_segments_per_shard - shard_count - size_in_bytes - - max_segments_per_shard InfoFeatureState: type: object properties: @@ -118,8 +118,8 @@ components: settings: $ref: '#/components/schemas/RepositorySettings' required: - - type - settings + - type RepositorySettings: type: object properties: @@ -219,9 +219,9 @@ components: $ref: '_common.yaml#/components/schemas/DurationValueUnitMillis' required: - incremental - - total - start_time_in_millis - time_in_millis + - total ShardsStatsSummaryItem: type: object properties: diff --git a/spec/schemas/snapshot.restore.yaml b/spec/schemas/snapshot.restore.yaml index 4788c0b8e..57f8c4fe1 100644 --- a/spec/schemas/snapshot.restore.yaml +++ b/spec/schemas/snapshot.restore.yaml @@ -19,5 +19,5 @@ components: $ref: '_common.yaml#/components/schemas/ShardStatistics' required: - indices - - snapshot - shards + - snapshot diff --git a/spec/schemas/tasks._common.yaml b/spec/schemas/tasks._common.yaml index 1f4787c01..b6d85e989 100644 --- a/spec/schemas/tasks._common.yaml +++ b/spec/schemas/tasks._common.yaml @@ -111,5 +111,5 @@ components: type: string enum: - nodes - - parents - none + - parents diff --git a/tests/_core/reindex.yaml b/tests/_core/reindex.yaml index 893adbfb7..f0dbfe87d 100644 --- a/tests/_core/reindex.yaml +++ b/tests/_core/reindex.yaml @@ -96,8 +96,8 @@ chapters: payload: source: index: - - movies - films + - movies dest: index: videos response: @@ -172,6 +172,7 @@ chapters: - Beauty - and - the + # eslint-disable-next-line yml/sort-sequence-values - Beast length: 4 title: Beauty and the Beast diff --git a/tests/_core/search.yaml b/tests/_core/search.yaml index cb6adf42c..a1760ee51 100644 --- a/tests/_core/search.yaml +++ b/tests/_core/search.yaml @@ -95,7 +95,7 @@ chapters: query: multi_match: query: miller - fields: [title^2, director] + fields: [director, title^2] response: status: 200 payload: diff --git a/tests/indices/cache.yaml b/tests/indices/cache.yaml index 4a592fcc5..d88e81497 100644 --- a/tests/indices/cache.yaml +++ b/tests/indices/cache.yaml @@ -46,8 +46,8 @@ chapters: method: POST parameters: index: - - movies - games + - movies response: status: 200 payload: diff --git a/tests/indices/data_stream.yaml b/tests/indices/data_stream.yaml index 11cf2db82..0bf314faa 100644 --- a/tests/indices/data_stream.yaml +++ b/tests/indices/data_stream.yaml @@ -17,8 +17,8 @@ chapters: request_body: payload: index_patterns: - - my-data-stream - logs-* + - my-data-stream data_stream: timestamp_field: name: request_time diff --git a/tools/tests/linter/fixtures/superseded_operations/incorrect_order_of_operations.yaml b/tools/tests/linter/fixtures/superseded_operations/incorrect_order_of_operations.yaml index 076e22685..ca740e7f7 100644 --- a/tools/tests/linter/fixtures/superseded_operations/incorrect_order_of_operations.yaml +++ b/tools/tests/linter/fixtures/superseded_operations/incorrect_order_of_operations.yaml @@ -1,3 +1,5 @@ +# eslint-disable yml/sort-sequence-values + $schema: ./json_schemas/_superseded_operations.schema.yaml /world/hello: diff --git a/tools/tests/linter/fixtures/superseded_operations/invalid_schema.yaml b/tools/tests/linter/fixtures/superseded_operations/invalid_schema.yaml index 34e2b3fea..e1af0d64d 100644 --- a/tools/tests/linter/fixtures/superseded_operations/invalid_schema.yaml +++ b/tools/tests/linter/fixtures/superseded_operations/invalid_schema.yaml @@ -1,3 +1,5 @@ +# eslint-disable yml/sort-sequence-values + $schema: ./json_schemas/_superseded_operations.schema.yaml /hello/world: diff --git a/tools/tests/merger/fixtures/spec/_superseded_operations.yaml b/tools/tests/merger/fixtures/spec/_superseded_operations.yaml index 4ddca20c2..3de11e2a4 100644 --- a/tools/tests/merger/fixtures/spec/_superseded_operations.yaml +++ b/tools/tests/merger/fixtures/spec/_superseded_operations.yaml @@ -1,3 +1,5 @@ +# eslint-disable yml/sort-sequence-values + /replaced/adopting/{a}/something/{b}: superseded_by: /adopt/{animal}/dockets/{docket} operations: diff --git a/tools/tests/tester/fixtures/specs/excerpt.yaml b/tools/tests/tester/fixtures/specs/excerpt.yaml index 5ec035287..2a2859559 100644 --- a/tools/tests/tester/fixtures/specs/excerpt.yaml +++ b/tools/tests/tester/fixtures/specs/excerpt.yaml @@ -175,9 +175,9 @@ components: acknowledged: type: boolean required: + - acknowledged - index - shards_acknowledged - - acknowledged parameters: cat.health::query.format: in: query