Skip to content

Commit

Permalink
Fix quotes in descriptions. (#402)
Browse files Browse the repository at this point in the history
* Fix: quote defaults.

Signed-off-by: dblock <[email protected]>

* Use a regular quote.

Signed-off-by: dblock <[email protected]>

---------

Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock authored Jul 11, 2024
1 parent fd96e3e commit 32673b2
Show file tree
Hide file tree
Showing 19 changed files with 52 additions and 52 deletions.
10 changes: 5 additions & 5 deletions spec/namespaces/_core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3291,7 +3291,7 @@ components:
bulk::query.require_alias:
in: query
name: require_alias
description: If `true`, the requests actions must target an index alias.
description: If `true`, the request's actions must target an index alias.
schema:
type: boolean
default: false
Expand Down Expand Up @@ -3480,8 +3480,8 @@ components:
name: index
description: |-
Name of the data stream or index to target.
If the target doesnt exist and matches the name or wildcard (`*`) pattern of an index template with a `data_stream` definition, this request creates the data stream.
If the target doesnt exist and doesnt match a data stream template, this request creates the index.
If the target doesn't exist and matches the name or wildcard (`*`) pattern of an index template with a `data_stream` definition, this request creates the data stream.
If the target doesn't exist and doesn't match a data stream template, this request creates the index.
required: true
schema:
$ref: '../schemas/_common.yaml#/components/schemas/IndexName'
Expand Down Expand Up @@ -5069,7 +5069,7 @@ components:
name: slices
description: |-
The number of slices this task should be divided into.
Defaults to 1 slice, meaning the task isnt sliced into subtasks.
Defaults to 1 slice, meaning the task isn't sliced into subtasks.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Slices'
style: form
Expand Down Expand Up @@ -5137,7 +5137,7 @@ components:
scroll::query.rest_total_hits_as_int:
in: query
name: rest_total_hits_as_int
description: If true, the API responses hit.total property is returned as an integer. If false, the API responses hit.total property is returned as an object.
description: If true, the API response's hit.total property is returned as an integer. If false, the API response's hit.total property is returned as an object.
schema:
type: boolean
default: false
Expand Down
4 changes: 2 additions & 2 deletions spec/namespaces/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ components:
OpenSearch includes the following built-in component templates: `logs-mappings`; 'logs-settings`; `metrics-mappings`; `metrics-settings`;`synthetics-mapping`; `synthetics-settings`.
OpenSearch Agent uses these templates to configure backing indices for its data streams.
If you use OpenSearch Agent and want to overwrite one of these templates, set the `version` for your replacement template higher than the current version.
If you dont use OpenSearch Agent and want to disable all built-in component and index templates, set `stack.templates.enabled` to `false` using the cluster update settings API.
If you don't use OpenSearch Agent and want to disable all built-in component and index templates, set `stack.templates.enabled` to `false` using the cluster update settings API.
required: true
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Name'
Expand Down Expand Up @@ -1388,7 +1388,7 @@ components:
description: |-
Period to wait for each node to respond.
If a node does not respond before its timeout expires, the response does not include its stats.
However, timed out nodes are included in the responses `_nodes.failed` property. Defaults to no timeout.
However, timed out nodes are included in the response's `_nodes.failed` property. Defaults to no timeout.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
style: form
10 changes: 5 additions & 5 deletions spec/namespaces/indices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ components:
analyzer:
description: |-
The name of the analyzer that should be applied to the provided `text`.
This could be a built-in analyzer, or an analyzer thats been configured in the index.
This could be a built-in analyzer, or an analyzer that's been configured in the index.
type: string
attributes:
description: Array of token attributes used to filter the output of the `explain` parameter.
Expand Down Expand Up @@ -1849,9 +1849,9 @@ components:
is_write_index:
description: |-
If `true`, sets the write index or data stream for the alias.
If an alias points to multiple indices or data streams and `is_write_index` isnt set, the alias rejects write requests.
If an index alias points to one index and `is_write_index` isnt set, the index automatically acts as the write index.
Data stream aliases dont automatically set a write data stream, even if the alias points to one data stream.
If an alias points to multiple indices or data streams and `is_write_index` isn't set, the alias rejects write requests.
If an index alias points to one index and `is_write_index` isn't set, the index automatically acts as the write index.
Data stream aliases don't automatically set a write data stream, even if the alias points to one data stream.
type: boolean
routing:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
Expand Down Expand Up @@ -4121,7 +4121,7 @@ components:
name: name
description: |-
Alias to update.
If the alias doesnt exist, the request creates it.
If the alias doesn't exist, the request creates it.
Index alias names support date math.
required: true
schema:
Expand Down
2 changes: 1 addition & 1 deletion spec/namespaces/ingest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ components:
name: id
description: |-
Pipeline to test.
If you dont specify a `pipeline` in the request body, this parameter is required.
If you don't specify a `pipeline` in the request body, this parameter is required.
required: true
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Id'
Expand Down
6 changes: 3 additions & 3 deletions spec/namespaces/transforms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,15 @@ components:
transforms.search::query.size:
name: size
in: query
description: Specifies the number of transforms to return. Default is 10.
description: Specifies the number of transforms to return. Default is `10`.
required: false
schema:
type: number
style: form
transforms.search::query.from:
name: from
in: query
description: The starting transform to return. Default is 0.
description: The starting transform to return. Default is `0`.
required: false
schema:
type: number
Expand All @@ -257,7 +257,7 @@ components:
transforms.search::query.sortDirection:
name: sortDirection
in: query
description: Specifies the direction to sort results in. Can be ASC or DESC. Default is ASC.
description: Specifies the direction to sort results in. Can be `ASC` or `DESC`. Default is `ASC`.
required: false
schema:
type: string
Expand Down
4 changes: 2 additions & 2 deletions spec/schemas/_common.aggregations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1901,7 +1901,7 @@ components:
format:
description: |-
`DecimalFormat` pattern for the output value.
If specified, the formatted value is returned in the aggregations `value_as_string` property.
If specified, the formatted value is returned in the aggregation's `value_as_string` property.
type: string
gap_policy:
$ref: '#/components/schemas/GapPolicy'
Expand Down Expand Up @@ -2028,7 +2028,7 @@ components:
properties:
doc_count:
description: |-
The total number of documents that initially created the expectations. Its required to be greater
The total number of documents that initially created the expectations. It's required to be greater
than or equal to the sum of all values in the buckets_path as this is the originating superset of data
to which the term values are correlated.
type: number
Expand Down
16 changes: 8 additions & 8 deletions spec/schemas/_common.query_dsl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ components:
type: number
missing:
description: |-
Value used if the document doesnt have that field.
Value used if the document doesn't have that field.
The modifier and factor are still applied to it as though it were read from the document.
type: number
modifier:
Expand Down Expand Up @@ -1303,7 +1303,7 @@ components:
case_insensitive:
description: |-
Allows ASCII case insensitive matching of the value with the indexed field values when set to `true`.
Default is `false` which means the case sensitivity of matching depends on the underlying fields mapping.
Default is `false` which means the case sensitivity of matching depends on the underlying field's mapping.
type: boolean
required:
- value
Expand Down Expand Up @@ -1520,7 +1520,7 @@ components:
case_insensitive:
description: |-
Allows case insensitive matching of the regular expression value with the indexed field values when set to `true`.
When `false`, case sensitivity of matching depends on the underlying fields mapping.
When `false`, case sensitivity of matching depends on the underlying field's mapping.
type: boolean
flags:
description: Enables optional operators for the regular expression.
Expand Down Expand Up @@ -1759,18 +1759,18 @@ components:
properties:
dist:
description: |-
The number of tokens from within the include span that cant have overlap with the exclude span.
The number of tokens from within the include span that can't have overlap with the exclude span.
Equivalent to setting both `pre` and `post`.
type: number
exclude:
$ref: '#/components/schemas/SpanQuery'
include:
$ref: '#/components/schemas/SpanQuery'
post:
description: The number of tokens after the include span that cant have overlap with the exclude span.
description: The number of tokens after the include span that can't have overlap with the exclude span.
type: number
pre:
description: The number of tokens before the include span that cant have overlap with the exclude span.
description: The number of tokens before the include span that can't have overlap with the exclude span.
type: number
required:
- exclude
Expand Down Expand Up @@ -1818,7 +1818,7 @@ components:
case_insensitive:
description: |-
Allows ASCII case insensitive matching of the value with the indexed field values when set to `true`.
When `false`, the case sensitivity of matching depends on the underlying fields mapping.
When `false`, the case sensitivity of matching depends on the underlying field's mapping.
type: boolean
required:
- value
Expand Down Expand Up @@ -1890,7 +1890,7 @@ components:
- type: object
properties:
case_insensitive:
description: Allows case insensitive matching of the pattern with the indexed field values when set to true. Default is false which means the case sensitivity of matching depends on the underlying fields mapping.
description: Allows case insensitive matching of the pattern with the indexed field values when set to `true`. Default is `false` which means the case sensitivity of matching depends on the underlying field's mapping.
type: boolean
rewrite:
$ref: '_common.yaml#/components/schemas/MultiTermQueryRewrite'
Expand Down
6 changes: 3 additions & 3 deletions spec/schemas/_core.bulk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ components:
A map from the full name of fields to the name of dynamic templates.
Defaults to an empty map.
If a name matches a dynamic template, then that template will be applied regardless of other match predicates defined in the template.
If a field is already defined in the mapping, then this parameter wont be used.
If a field is already defined in the mapping, then this parameter won't be used.
type: object
additionalProperties:
type: string
Expand All @@ -44,7 +44,7 @@ components:
If a final pipeline is configured it will always run, regardless of the value of this parameter.
type: string
require_alias:
description: If `true`, the requests actions must target an index alias.
description: If `true`, the request's actions must target an index alias.
type: boolean
OperationBase:
type: object
Expand Down Expand Up @@ -73,7 +73,7 @@ components:
- type: object
properties:
require_alias:
description: If `true`, the requests actions must target an index alias.
description: If `true`, the request's actions must target an index alias.
type: boolean
retry_on_conflict:
type: number
Expand Down
2 changes: 1 addition & 1 deletion spec/schemas/_core.field_caps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ components:
metric_conflicts_indices:
description: |-
The list of indices where this field is present if these indices
dont have the same `time_series_metric` value for this field.
don't have the same `time_series_metric` value for this field.
type: array
items:
$ref: '_common.yaml#/components/schemas/IndexName'
Expand Down
4 changes: 2 additions & 2 deletions spec/schemas/_core.rank_eval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ components:
_index:
$ref: '_common.yaml#/components/schemas/IndexName'
rating:
description: The documents relevance with regard to this search request.
description: The document's relevance with regard to this search request.
type: number
required:
- _id
Expand Down Expand Up @@ -119,7 +119,7 @@ components:
description: The metric_score in the details section shows the contribution of this query to the global quality metric score
type: number
unrated_docs:
description: The unrated_docs section contains an _index and _id entry for each document in the search result for this query that didnt have a ratings value. This can be used to ask the user to supply ratings for these documents
description: The unrated_docs section contains an _index and _id entry for each document in the search result for this query that didn't have a ratings value. This can be used to ask the user to supply ratings for these documents
type: array
items:
$ref: '#/components/schemas/UnratedDocument'
Expand Down
2 changes: 1 addition & 1 deletion spec/schemas/_core.scripts_painless_execute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ components:
type: object
properties:
document:
description: Document thats temporarily indexed in-memory and accessible from the script.
description: Document that's temporarily indexed in-memory and accessible from the script.
type: object
index:
$ref: '_common.yaml#/components/schemas/IndexName'
Expand Down
2 changes: 1 addition & 1 deletion spec/schemas/_core.search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ components:
description: |-
If set to a non-negative value, highlighting stops at this defined maximum limit.
The rest of the text is not processed, thus not highlighted and no error is returned
The `max_analyzed_offset` query setting does not override the `index.highlight.max_analyzed_offset` setting, which prevails when its set to lower value than the query setting.
The `max_analyzed_offset` query setting does not override the `index.highlight.max_analyzed_offset` setting, which prevails when it's set to lower value than the query setting.
type: number
no_match_size:
description: The amount of text you want to return from the beginning of the field if there are no matching fragments to highlight.
Expand Down
8 changes: 4 additions & 4 deletions spec/schemas/cat.allocation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ components:
type: string
disk.indices:
description: |-
Disk space used by the nodes shards. Does not include disk space for the translog or unassigned shards.
Disk space used by the node's shards. Does not include disk space for the translog or unassigned shards.
IMPORTANT: This metric double-counts disk space for hard-linked files, such as those created when shrinking, splitting, or cloning an index.
anyOf:
- $ref: '_common.yaml#/components/schemas/ByteSize'
Expand All @@ -23,8 +23,8 @@ components:
disk.used:
description: |-
Total disk space in use.
OpenSearch retrieves this metric from the nodes operating system (OS).
The metric includes disk space for: OpenSearch, including the translog and unassigned shards; the nodes operating system; any other applications or files on the node.
OpenSearch retrieves this metric from the node's operating system (OS).
The metric includes disk space for: OpenSearch, including the translog and unassigned shards; the node's operating system; any other applications or files on the node.
Unlike `disk.indices`, this metric does not double-count disk space for hard-linked files.
anyOf:
- $ref: '_common.yaml#/components/schemas/ByteSize'
Expand All @@ -33,7 +33,7 @@ components:
disk.avail:
description: |-
Free disk space available to OpenSearch.
OpenSearch retrieves this metric from the nodes operating system.
OpenSearch retrieves this metric from the node's operating system.
Disk-based shard allocation uses this metric to assign shards to nodes based on available disk space.
anyOf:
- $ref: '_common.yaml#/components/schemas/ByteSize'
Expand Down
4 changes: 2 additions & 2 deletions spec/schemas/cat.shards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ components:
`CLUSTER_RECOVERED`: Unassigned as a result of a full cluster recovery.
`DANGLING_INDEX_IMPORTED`: Unassigned as a result of importing a dangling index.
`EXISTING_INDEX_RESTORED`: Unassigned as a result of restoring into a closed index.
`FORCED_EMPTY_PRIMARY`: The shards allocation was last modified by forcing an empty primary using the cluster reroute API.
`FORCED_EMPTY_PRIMARY`: The shard's allocation was last modified by forcing an empty primary using the cluster reroute API.
`INDEX_CLOSED`: Unassigned because the index was closed.
`INDEX_CREATED`: Unassigned as a result of an API creation of an index.
`INDEX_REOPENED`: Unassigned as a result of opening a closed index.
`MANUAL_ALLOCATION`: The shards allocation was last modified by the cluster reroute API.
`MANUAL_ALLOCATION`: The shard's allocation was last modified by the cluster reroute API.
`NEW_INDEX_RESTORED`: Unassigned as a result of restoring into a new index.
`NODE_LEFT`: Unassigned as a result of the node hosting it leaving the cluster.
`NODE_RESTARTING`: Similar to `NODE_LEFT`, except that the node was registered as restarting using the node shutdown API.
Expand Down
2 changes: 1 addition & 1 deletion spec/schemas/cluster.stats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ components:
name:
$ref: '_common.yaml#/components/schemas/Name'
scriptless_count:
description: Number of runtime fields that dont declare a script.
description: Number of runtime fields that don't declare a script.
type: number
shadowed_count:
description: Number of runtime fields that shadow an indexed field.
Expand Down
Loading

0 comments on commit 32673b2

Please sign in to comment.