Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution] Added the rule_source field to the rule schemas (e…
…lastic#181581) **Resolves: elastic#180121 **Resolves: elastic#180122 **Resolves: elastic#180124 ## Summary As part of the preparatory changes for the work in Milestone 3, we want to add the new `rule_source` field to the API schema. - Added `rule_source` as an **optional** property to `RuleResponse`, by introducing it as an optional property in the `ResponseFields` schema. - For now, all endpoints should return `undefined` for the `rule_source` field. - Added `rule_source` as an **optional** property to `RuleToImport`, which defines the schema of required and accepted fields when importing a rule. - For now, the new `rule_source` field should be ignored in the endpoint logic. - Added the `ruleSource` field to the `BaseRuleParams` schema, as an optional field. - Implemented a Zod transformation from `snake_case` to `camelCase` for object keys to reduce code duplication.
- Loading branch information