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

Update rest API specs #54252

Merged
merged 5 commits into from
Apr 2, 2020
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Reinstate deprecated:bool API parts
russcam committed Apr 1, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit ea86e149bfcb7019f690065ba12e2127ef2fa719
Original file line number Diff line number Diff line change
@@ -21,7 +21,8 @@
"parts":{
"scroll_id":{
"type":"list",
"description":"A comma-separated list of scroll IDs to clear"
"description":"A comma-separated list of scroll IDs to clear",
"deprecated":true
}
},
"deprecated":{
Original file line number Diff line number Diff line change
@@ -41,7 +41,8 @@
},
"type":{
"type":"string",
"description":"The type of the document"
"description":"The type of the document",
"deprecated":true
}
},
"deprecated":{
Original file line number Diff line number Diff line change
@@ -39,7 +39,8 @@
},
"type":{
"type":"string",
"description":"The type of the document"
"description":"The type of the document",
"deprecated":true
}
},
"deprecated":{
Original file line number Diff line number Diff line change
@@ -39,7 +39,8 @@
},
"type":{
"type":"string",
"description":"The type of the document; deprecated and optional starting with 7.0"
"description":"The type of the document; deprecated and optional starting with 7.0",
"deprecated":true
}
},
"deprecated":{
Original file line number Diff line number Diff line change
@@ -40,7 +40,8 @@
},
"type":{
"type":"list",
"description":"A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types"
"description":"A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types",
"deprecated":true
}
},
"deprecated":{
Original file line number Diff line number Diff line change
@@ -23,7 +23,8 @@
"parts":{
"scroll_id":{
"type":"string",
"description":"The scroll ID"
"description":"The scroll ID",
"deprecated":true
}
},
"deprecated":{
Original file line number Diff line number Diff line change
@@ -39,7 +39,8 @@
},
"type":{
"type":"string",
"description":"The type of the document"
"description":"The type of the document",
"deprecated":true
}
},
"deprecated":{
7 changes: 5 additions & 2 deletions rest-api-spec/src/main/resources/schema.json
Original file line number Diff line number Diff line change
@@ -180,7 +180,10 @@
"title": "Default value"
},
"deprecated": {
"$ref": "#/definitions/Deprecated"
"oneOf": [
{ "$ref": "#/definitions/Deprecated" },
{ "type": "boolean" }
]
},
"description": {
"type": "string",
@@ -239,4 +242,4 @@
"description": "A path variant for the API including the HTTP methods it supports and parts"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -23,10 +23,7 @@
"accept_enterprise":{
"type":"boolean",
"description":"Supported for backwards compatibility with 7.x. If this param is used it must be set to true",
"deprecated":{
"version":"8.0.0",
"description":"Supported for backwards compatibility with 7.x"
}
"deprecated":true
}
}
}
Original file line number Diff line number Diff line change
@@ -23,7 +23,8 @@
"parts":{
"type":{
"type":"string",
"description":"Default document type for items which don't provide one"
"description":"Default document type for items which don't provide one",
"deprecated":true
}
},
"deprecated":{
Original file line number Diff line number Diff line change
@@ -34,7 +34,8 @@
"type":{
"type":"string",
"required":false,
"description":"The doc type inside the index"
"description":"The doc type inside the index",
"deprecated":true
}
},
"deprecated":{