From 71cd5f9cbec0402865a91740347c719220f5c345 Mon Sep 17 00:00:00 2001 From: Archer Date: Wed, 26 Feb 2025 11:59:38 -0600 Subject: [PATCH] Fix Spec tests Signed-off-by: Archer --- spec/schemas/_common.yaml | 34 ++++++++++++---------- spec/schemas/cluster.reroute.yaml | 48 ++++++++++++++++++------------- 2 files changed, 47 insertions(+), 35 deletions(-) diff --git a/spec/schemas/_common.yaml b/spec/schemas/_common.yaml index 3064475c..eb11b56d 100644 --- a/spec/schemas/_common.yaml +++ b/spec/schemas/_common.yaml @@ -1059,21 +1059,25 @@ components: - shards WaitForEvents: description: Waits until all currently queued events with the given priority are processed. - type: string - enum: - - high - - immediate - - languid - - low - - normal - - urgent - enumDescriptions: - immediate: The highest priority event, processed as soon as possible. - urgent: A very high priority event, processed after immediate events. - high: A high priority event, processed after urgent events. - normal: The default priority for events, processed after high priority events. - low: A low priority event, processed after normal events. - languid: The lowest priority event, processed after all other events. + oneOf: + - type: string + const: immediate + description: Highest priority, processed as soon as possible. + - type: string + const: urgent + description: Very high priority, processed after immediate events. + - type: string + const: high + description: High priority, processed after urgent events. + - type: string + const: normal + description: Default priority, processed after high priority events. + - type: string + const: low + description: Low priority, processed after normal events. + - type: string + const: languid + description: Lowest priority, processed after all other events. DataStreamName: type: string CompletionStats: diff --git a/spec/schemas/cluster.reroute.yaml b/spec/schemas/cluster.reroute.yaml index 5ee38ee8..fe266bc9 100644 --- a/spec/schemas/cluster.reroute.yaml +++ b/spec/schemas/cluster.reroute.yaml @@ -121,26 +121,34 @@ components: - node - shard Metric: - type: string - enum: - - _all - - blocks - - cluster_manager_node - - master_node - - metadata - - nodes - - routing_nodes - - routing_table - - version - enumDescriptions: - _all: Returns all available metrics. - blocks: Returns information about cluster level blocks. - cluster_manager_node: Returns information about the current cluster manager node. - master_node: An alias for `cluster_manager_node`. Deprecated, but maintained for backwards compatibility. - metadata: Returns the cluster state metadata - nodes: Returns information about nodes in the cluster. - routing_nodes: Returns the node-level shard allocations. - version: Returns the cluster state version. + oneOf: + - type: string + const: _all + description: Returns all available metrics. + - type: string + const: blocks + description: Returns information about cluster-level blocks. + - type: string + const: cluster_manager_node + description: Returns information about the current cluster manager node. + - type: string + const: master_node + description: The alias for `cluster_manager_node`. Deprecated, but maintained for backwards compatibility. + - type: string + const: metadata + description: Returns the cluster state metadata. + - type: string + const: nodes + description: Returns information about nodes in the cluster. + - type: string + const: routing_nodes + description: Returns the node-level shard allocations. + - type: string + const: routing_table + description: Returns index-level shard allocations. + - type: string + const: version + description: Returns the cluster state version. RerouteExplanation: type: object properties: