Remove inclue_type_name parameter from rest api spec (#2410)

Signed-off-by: Suraj Singh <surajrider@gmail.com>
This commit is contained in:
Suraj Singh 2022-03-08 14:43:04 -08:00 committed by GitHub
parent 044f53630a
commit a6a47e7321
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 1 additions and 26 deletions

View File

@ -22,10 +22,6 @@
]
},
"params":{
"include_type_name":{
"type":"boolean",
"description":"Whether a type should be expected in the body of the mappings."
},
"wait_for_active_shards":{
"type":"string",
"description":"Set the number of active shards to wait for before the operation returns."

View File

@ -22,10 +22,6 @@
]
},
"params":{
"include_type_name":{
"type":"boolean",
"description":"Whether to add the type name to the response (default: false)"
},
"local":{
"type":"boolean",
"description":"Return local information, do not retrieve the state from master node (default: false)"

View File

@ -38,10 +38,6 @@
]
},
"params":{
"include_type_name":{
"type":"boolean",
"description":"Whether a type should be returned in the body of the mappings."
},
"include_defaults":{
"type":"boolean",
"description":"Whether the default mapping values should be returned as well"

View File

@ -28,10 +28,6 @@
]
},
"params":{
"include_type_name":{
"type":"boolean",
"description":"Whether a type should be returned in the body of the mappings."
},
"flat_settings":{
"type":"boolean",
"description":"Return settings in flat format (default: false)"

View File

@ -23,10 +23,6 @@
]
},
"params":{
"include_type_name":{
"type":"boolean",
"description":"Whether a type should be returned in the body of the mappings."
},
"order":{
"type":"number",
"description":"The order for this template when merging multiple matching ones (higher numbers are merged later, overriding the lower numbers)"

View File

@ -38,10 +38,6 @@
]
},
"params":{
"include_type_name":{
"type":"boolean",
"description":"Whether a type should be included in the body of the mappings."
},
"timeout":{
"type":"time",
"description":"Explicit operation timeout"

View File

@ -60,7 +60,6 @@ import static org.opensearch.rest.RestStatus.NOT_FOUND;
import static org.opensearch.rest.RestStatus.OK;
public class RestGetFieldMappingAction extends BaseRestHandler {
private static final Logger logger = LogManager.getLogger(RestGetFieldMappingAction.class);
private static final DeprecationLogger deprecationLogger = DeprecationLogger.getLogger(logger.getName());
@ -107,7 +106,7 @@ public class RestGetFieldMappingAction extends BaseRestHandler {
status = NOT_FOUND;
}
response.toXContent(builder, request);
return new BytesRestResponse(RestStatus.OK, builder);
return new BytesRestResponse(status, builder);
}
});
}