From 5b8df7eba69fd50fd71d83eb8936bf03a3cba60d Mon Sep 17 00:00:00 2001 From: Karel Minarik Date: Mon, 9 Sep 2013 20:59:47 +0200 Subject: [PATCH] Fixed incorrect default JSON spec for `get_source` API --- rest-api-spec/api/get_source.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rest-api-spec/api/get_source.json b/rest-api-spec/api/get_source.json index 1f4a72425cf..2fa4baa1b7c 100644 --- a/rest-api-spec/api/get_source.json +++ b/rest-api-spec/api/get_source.json @@ -8,8 +8,7 @@ "parts": { "id": { "type" : "string", - "required" : false, - "default" : "_all", + "required" : true, "description" : "The document ID" }, "index": { @@ -19,7 +18,8 @@ }, "type": { "type" : "string", - "required" : true, + "required" : false, + "default" : "_all", "description" : "The type of the document; use `_all` to fetch the first document matching the ID across all types" } },