From 6487fb4bd19d520fefab5df28387ff89741d6c24 Mon Sep 17 00:00:00 2001 From: Honza Kral Date: Sun, 9 Jun 2013 21:17:29 +0200 Subject: [PATCH] Required settings for path parts --- rest-api-spec/api/delete_by_query.json | 1 + rest-api-spec/api/indices.delete_mapping.json | 1 + rest-api-spec/api/indices.delete_warmer.json | 1 + rest-api-spec/api/indices.get_mapping.json | 2 -- rest-api-spec/api/indices.get_warmer.json | 1 + rest-api-spec/api/indices.put_alias.json | 2 -- rest-api-spec/api/indices.put_mapping.json | 1 - rest-api-spec/api/indices.put_warmer.json | 2 ++ rest-api-spec/api/indices.snapshot_index.json | 1 - 9 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rest-api-spec/api/delete_by_query.json b/rest-api-spec/api/delete_by_query.json index 2fe8ee3217b..a138fea295f 100644 --- a/rest-api-spec/api/delete_by_query.json +++ b/rest-api-spec/api/delete_by_query.json @@ -8,6 +8,7 @@ "parts": { "index": { "type" : "list", + "required": true, "description" : "A comma-separated list of indices to restrict the operation" }, "type": { diff --git a/rest-api-spec/api/indices.delete_mapping.json b/rest-api-spec/api/indices.delete_mapping.json index 1daab891502..f100a7c78dd 100644 --- a/rest-api-spec/api/indices.delete_mapping.json +++ b/rest-api-spec/api/indices.delete_mapping.json @@ -13,6 +13,7 @@ }, "type": { "type" : "string", + "required" : true, "description" : "The name of the document type to delete" } }, diff --git a/rest-api-spec/api/indices.delete_warmer.json b/rest-api-spec/api/indices.delete_warmer.json index d05aef8c8b2..3fa6ed416b4 100644 --- a/rest-api-spec/api/indices.delete_warmer.json +++ b/rest-api-spec/api/indices.delete_warmer.json @@ -8,6 +8,7 @@ "parts": { "index": { "type" : "list", + "required" : true, "description" : "A comma-separated list of index names to register warmer for; use `_all` or empty string to perform the operation on all indices" }, "name" : { diff --git a/rest-api-spec/api/indices.get_mapping.json b/rest-api-spec/api/indices.get_mapping.json index 99e5b3fb95a..e0cdb6fc848 100644 --- a/rest-api-spec/api/indices.get_mapping.json +++ b/rest-api-spec/api/indices.get_mapping.json @@ -8,12 +8,10 @@ "parts": { "index": { "type" : "list", - "required" : true, "description" : "A comma-separated list of index names; use `_all` or empty string for all indices" }, "type": { "type" : "list", - "required" : true, "description" : "A comma-separated list of document types" } }, diff --git a/rest-api-spec/api/indices.get_warmer.json b/rest-api-spec/api/indices.get_warmer.json index 7fdd06bc1a1..56593975a20 100644 --- a/rest-api-spec/api/indices.get_warmer.json +++ b/rest-api-spec/api/indices.get_warmer.json @@ -8,6 +8,7 @@ "parts": { "index": { "type" : "list", + "required" : true, "description" : "A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices" }, "name": { diff --git a/rest-api-spec/api/indices.put_alias.json b/rest-api-spec/api/indices.put_alias.json index 7441860b1ab..aa14cd90bd6 100644 --- a/rest-api-spec/api/indices.put_alias.json +++ b/rest-api-spec/api/indices.put_alias.json @@ -8,12 +8,10 @@ "parts": { "index": { "type" : "string", - "required" : true, "description" : "The name of the index with an alias" }, "name": { "type" : "string", - "required" : true, "description" : "The name of the alias to be created or updated" } }, diff --git a/rest-api-spec/api/indices.put_mapping.json b/rest-api-spec/api/indices.put_mapping.json index d3696f89998..7365e3f1777 100644 --- a/rest-api-spec/api/indices.put_mapping.json +++ b/rest-api-spec/api/indices.put_mapping.json @@ -13,7 +13,6 @@ }, "type": { "type" : "string", - "required" : true, "description" : "The name of the document type" } }, diff --git a/rest-api-spec/api/indices.put_warmer.json b/rest-api-spec/api/indices.put_warmer.json index ba006cc60f6..cd0824ecfe3 100644 --- a/rest-api-spec/api/indices.put_warmer.json +++ b/rest-api-spec/api/indices.put_warmer.json @@ -8,10 +8,12 @@ "parts": { "index": { "type" : "list", + "required" : true, "description" : "A comma-separated list of index names to register the warmer for; use `_all` or empty string to perform the operation on all indices" }, "name": { "type" : "string", + "required" : true, "description" : "The name of the warmer" }, "type": { diff --git a/rest-api-spec/api/indices.snapshot_index.json b/rest-api-spec/api/indices.snapshot_index.json index 74cd729d9f1..dc66ac673fb 100644 --- a/rest-api-spec/api/indices.snapshot_index.json +++ b/rest-api-spec/api/indices.snapshot_index.json @@ -8,7 +8,6 @@ "parts": { "index": { "type" : "list", - "required" : true, "description" : "A comma-separated list of index names; use `_all` or empty string for all indices" } },