Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differentiate between routing values in bodies versus query string #626

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions spec/namespaces/_core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3369,7 +3369,7 @@ components:
name: routing
description: Custom value used to route operations to a specific shard.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
style: form
bulk::query.timeout:
in: query
Expand Down Expand Up @@ -3456,7 +3456,7 @@ components:
name: routing
description: Custom value used to route operations to a specific shard.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
style: form
bulk_stream::query.timeout:
in: query
Expand Down Expand Up @@ -3628,7 +3628,7 @@ components:
name: routing
description: Custom value used to route operations to a specific shard.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
style: form
count::query.terminate_after:
in: query
Expand Down Expand Up @@ -3684,7 +3684,7 @@ components:
name: routing
description: Custom value used to route operations to a specific shard.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
style: form
create::query.timeout:
in: query
Expand Down Expand Up @@ -3762,7 +3762,7 @@ components:
description: Comma-separated list of specific routing values.
style: form
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
explode: true
delete::path.id:
in: path
Expand Down Expand Up @@ -3809,7 +3809,7 @@ components:
name: routing
description: Custom value used to route operations to a specific shard.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
style: form
delete::query.timeout:
in: query
Expand Down Expand Up @@ -4024,7 +4024,7 @@ components:
name: routing
description: Custom value used to route operations to a specific shard.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
style: form
delete_by_query::query.scroll:
in: query
Expand Down Expand Up @@ -4262,7 +4262,7 @@ components:
name: routing
description: Target the specified primary shard.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
style: form
exists::query.stored_fields:
in: query
Expand Down Expand Up @@ -4358,7 +4358,7 @@ components:
name: routing
description: Target the specified primary shard.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
style: form
exists_source::query.version:
in: query
Expand Down Expand Up @@ -4476,7 +4476,7 @@ components:
name: routing
description: Custom value used to route operations to a specific shard.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
style: form
explain::query.stored_fields:
in: query
Expand Down Expand Up @@ -4596,7 +4596,7 @@ components:
name: routing
description: Target the specified primary shard.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
style: form
get::query.stored_fields:
in: query
Expand Down Expand Up @@ -4711,7 +4711,7 @@ components:
name: routing
description: Target the specified primary shard.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
style: form
get_source::query.version:
in: query
Expand Down Expand Up @@ -4803,7 +4803,7 @@ components:
name: routing
description: Custom value used to route operations to a specific shard.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
style: form
index::query.timeout:
in: query
Expand Down Expand Up @@ -4899,7 +4899,7 @@ components:
name: routing
description: Custom value used to route operations to a specific shard.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
style: form
mget::query.stored_fields:
in: query
Expand Down Expand Up @@ -5105,7 +5105,7 @@ components:
name: routing
description: Custom value used to route operations to a specific shard.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
style: form
mtermvectors::query.term_statistics:
in: query
Expand Down Expand Up @@ -5609,7 +5609,7 @@ components:
name: routing
description: Custom value used to route operations to a specific shard.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
style: form
search::query.cancel_after_time_interval:
in: query
Expand Down Expand Up @@ -5852,7 +5852,7 @@ components:
name: routing
description: Custom value used to route operations to a specific shard.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
style: form
search_template::path.index:
in: path
Expand Down Expand Up @@ -5944,7 +5944,7 @@ components:
name: routing
description: Custom value used to route operations to a specific shard.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
style: form
search_template::query.scroll:
in: query
Expand Down Expand Up @@ -6049,7 +6049,7 @@ components:
name: routing
description: Custom value used to route operations to a specific shard.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
style: form
termvectors::query.term_statistics:
in: query
Expand Down Expand Up @@ -6167,7 +6167,7 @@ components:
name: routing
description: Custom value used to route operations to a specific shard.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
style: form
update::query.timeout:
in: query
Expand Down Expand Up @@ -6379,7 +6379,7 @@ components:
name: routing
description: Custom value used to route operations to a specific shard.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
style: form
update_by_query::query.scroll:
in: query
Expand Down
2 changes: 1 addition & 1 deletion spec/namespaces/knn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ components:
description: Comma-separated list of specific routing values.
style: form
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Routing'
$ref: '../schemas/_common.yaml#/components/schemas/RoutingInQueryString'
explode: true
knn.search_models::query.scroll:
name: scroll
Expand Down
2 changes: 2 additions & 0 deletions spec/schemas/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@ components:
ScrollId:
type: string
Routing:
type: string
RoutingInQueryString:
oneOf:
- type: string
- type: array
Expand Down
Loading