Skip to content

Commit

Permalink
query param in _field_caps to return only fields with values in index
Browse files Browse the repository at this point in the history
  • Loading branch information
piergm committed Feb 9, 2024
1 parent 4cb8434 commit e4542c7
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
21 changes: 20 additions & 1 deletion output/schema/schema.json

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

1 change: 1 addition & 0 deletions output/typescript/types.ts

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

6 changes: 6 additions & 0 deletions specification/_global/field_caps/FieldCapabilitiesRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ export interface Request extends RequestBase {
* @availability serverless
*/
types?: string[]
/**
* If false, empty fields are not included in the response.
* @availability stack since=8.13.0
* @server_default true
*/
include_empty_fields?: boolean
}
body: {
/**
Expand Down
5 changes: 5 additions & 0 deletions specification/_json_spec/field_caps.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@
"types": {
"type": "list",
"description": "Only return results for fields that have one of the types in the list"
},
"include_empty_fields": {
"type": "boolean",
"default": true,
"description": "Indicates whether empty fields should be included in the response."
}
},
"body": {
Expand Down

0 comments on commit e4542c7

Please sign in to comment.