Skip to content

Commit

Permalink
Fix "pretty" & "human" query parameter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
swallez committed Dec 12, 2024
1 parent 29421cd commit 02907d9
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 86 deletions.
55 changes: 4 additions & 51 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 1 addition & 19 deletions output/schema/validation-errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,13 +344,6 @@
"type_alias definition _global.mget:ResponseItem / union_of / instance_of / Generics / instance_of - No type definition for '_global.mget.ResponseItem:TDocument'"
]
},
"ml.get_memory_stats": {
"request": [
"Request: query parameter 'human' does not exist in the json spec",
"request definition ml.get_memory_stats:Request / query - Property 'human' is already defined in an ancestor class"
],
"response": []
},
"ml.stop_datafeed": {
"request": [
"Request: missing json spec query parameter 'allow_no_datafeeds'"
Expand Down Expand Up @@ -434,11 +427,7 @@
},
"searchable_snapshots.clear_cache": {
"request": [
"Request: query parameter 'pretty' does not exist in the json spec",
"Request: query parameter 'human' does not exist in the json spec",
"Request: missing json spec query parameter 'index'",
"request definition searchable_snapshots.clear_cache:Request / query - Property 'pretty' is already defined in an ancestor class",
"request definition searchable_snapshots.clear_cache:Request / query - Property 'human' is already defined in an ancestor class"
"Request: missing json spec query parameter 'index'"
],
"response": []
},
Expand Down Expand Up @@ -554,13 +543,6 @@
"Missing request & response"
],
"response": []
},
"xpack.info": {
"request": [
"Request: query parameter 'human' does not exist in the json spec",
"request definition xpack.info:Request / query - Property 'human' is already defined in an ancestor class"
],
"response": []
}
},
"generalErrors": []
Expand Down
4 changes: 0 additions & 4 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions specification/ml/get_memory_stats/MlGetMemoryStatsRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ export interface Request extends RequestBase {
node_id?: Id
}
query_parameters: {
/**
* Specify this query parameter to include the fields with units in the response. Otherwise only
* the `_in_bytes` sizes are returned in the response.
*/
human?: boolean
/**
* Period to wait for a connection to the master node. If no response is received before the timeout
* expires, the request fails and returns an error.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,5 @@ export interface Request extends RequestBase {
expand_wildcards?: ExpandWildcards
allow_no_indices?: boolean
ignore_unavailable?: boolean
pretty?: boolean
human?: boolean
}
}
5 changes: 0 additions & 5 deletions specification/xpack/info/XPackInfoRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ export interface Request extends RequestBase {
*/
categories?: XPackCategory[]
accept_enterprise?: boolean
/**
* Defines whether additional human-readable information is included in the response. In particular, it adds descriptions and a tag line.
* @server_default true
*/
human?: boolean
}
}

Expand Down

0 comments on commit 02907d9

Please sign in to comment.