You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2017/01/05 10:44:29 UTC

lucene-solr:apiv2: SOLR-8029: "shard" property should be required for "split" and "create" commands

Repository: lucene-solr
Updated Branches:
  refs/heads/apiv2 b55e25a99 -> 8c5836668


SOLR-8029: "shard" property should be required for "split" and "create" commands


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/8c583666
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/8c583666
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/8c583666

Branch: refs/heads/apiv2
Commit: 8c58366684f824465d46a957232664b5a11a1923
Parents: b55e25a
Author: Noble Paul <no...@apache.org>
Authored: Thu Jan 5 21:14:19 2017 +1030
Committer: Noble Paul <no...@apache.org>
Committed: Thu Jan 5 21:14:19 2017 +1030

----------------------------------------------------------------------
 .../apispec/collections.collection.shards.Commands.json     | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/8c583666/solr/core/src/resources/apispec/collections.collection.shards.Commands.json
----------------------------------------------------------------------
diff --git a/solr/core/src/resources/apispec/collections.collection.shards.Commands.json b/solr/core/src/resources/apispec/collections.collection.shards.Commands.json
index 7a959d0..cf0c301 100644
--- a/solr/core/src/resources/apispec/collections.collection.shards.Commands.json
+++ b/solr/core/src/resources/apispec/collections.collection.shards.Commands.json
@@ -38,7 +38,8 @@
           "type": "string",
           "description": "Defines a request ID that can be used to track this action after it's submitted. The action will be processed asynchronously when this is defined. This command can be long-running, so running it asynchronously is recommended."
         }
-      }
+      },
+      "required":["shard"]
     },
     "create": {
       "type":"object",
@@ -64,7 +65,8 @@
           "type": "string",
           "description": "Defines a request ID that can be used to track this action after it's submitted. The action will be processed asynchronously when this is defined."
         }
-      }
+      },
+      "required":["shard"]
     },
     "add-replica": {
       "documentation":"https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api_addreplica",
@@ -101,7 +103,8 @@
           "type": "string",
           "description": "Defines a request ID that can be used to track this action after it's submitted. The action will be processed asynchronously when this is defined."
         }
-      }
+      },
+      "required":["shard"]
     }
   }
 }