elastic / elastic/detection-rules
[FR] Better Error Messages for Schema Validation
- Dominant language
- Python
- Stars
- 2.7k
- Forks
- 696
- Avg merge
- 4d 17h
- Merged PRs (30d)
- 87
Description
**Is your feature request related to a problem? Please describe.**
Is it currently difficult to debug situations where there is a schema violation due to the error message being difficult to read.
**Describe the solution you'd like**
I would like that when a schema error is encountered, it displays the specific error that is the source of the issue either at the end or separate from other irrelevant errors that are triggered as a result of the first violation.
**Additional context**
See this issue https://github.com/elastic/detection-rules/issues/3542 as an example. The error message in this case should be informing the user that the name is in violation of the schema. While that error is in the list of errors in the message, it is very difficult to tell which one is the ultimately contributing error.
Contributor guide
Assessment
This issue has not been assessed yet.