Skip to content

Commit 693ba14

Browse files
Update QueryRulesetPutRequest body to better align with REST API (#2276) (#2287)
Co-authored-by: Kathleen DeRusso <kathleen.derusso@elastic.co>
1 parent dc1c9f9 commit 693ba14

File tree

3 files changed

+25
-13
lines changed

3 files changed

+25
-13
lines changed

output/schema/schema.json

+17-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/query_ruleset/put/QueryRulesetPutRequest.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
import { RequestBase } from '@_types/Base'
2020
import { Id } from '@_types/common'
21-
import { QueryRuleset } from '../_types/QueryRuleset'
21+
import { QueryRule } from '../_types/QueryRuleset'
2222

2323
/**
2424
* Creates or updates a query ruleset.
@@ -34,8 +34,10 @@ export interface Request extends RequestBase {
3434
ruleset_id: Id
3535
}
3636
/**
37-
* The query ruleset information to update
37+
* The query rules in this ruleset
3838
*/
3939
/** @codegen_name query_ruleset */
40-
body: QueryRuleset
40+
body: {
41+
rules: QueryRule[]
42+
}
4143
}

0 commit comments

Comments
 (0)