Skip to content

Commit c3186bd

Browse files
Make param types consistent in rest spec
1 parent 5090df6 commit c3186bd

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

rest-api-spec/api/index.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"description" : "Explicit timestamp for the document"
6161
},
6262
"ttl": {
63-
"type" : "duration",
63+
"type" : "time",
6464
"description" : "Expiration time for the document"
6565
},
6666
"version" : {

rest-api-spec/api/scroll.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"params": {
1515
"scroll": {
16-
"type" : "duration",
16+
"type" : "time",
1717
"description" : "Specify how long a consistent view of the index should be maintained for scrolled search"
1818
},
1919
"scroll_id": {

rest-api-spec/api/search.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"description" : "A comma-separated list of specific routing values"
8686
},
8787
"scroll": {
88-
"type" : "duration",
88+
"type" : "time",
8989
"description" : "Specify how long a consistent view of the index should be maintained for scrolled search"
9090
},
9191
"search_type": {

rest-api-spec/api/search_template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"description" : "A comma-separated list of specific routing values"
4040
},
4141
"scroll": {
42-
"type" : "duration",
42+
"type" : "time",
4343
"description" : "Specify how long a consistent view of the index should be maintained for scrolled search"
4444
},
4545
"search_type": {

rest-api-spec/api/update.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@
5959
"description": "Specific routing value"
6060
},
6161
"script": {
62+
"type": "string",
6263
"description": "The URL-encoded script definition (instead of using request body)"
6364
},
6465
"script_id": {
66+
"type": "string",
6567
"description": "The id of a stored script"
6668
},
6769
"scripted_upsert": {
@@ -77,7 +79,7 @@
7779
"description": "Explicit timestamp for the document"
7880
},
7981
"ttl": {
80-
"type": "duration",
82+
"type": "time",
8183
"description": "Expiration time for the document"
8284
},
8385
"version": {

0 commit comments

Comments
 (0)