Allow to define expected values in fields definitions#616
Allow to define expected values in fields definitions#616jsoriano merged 2 commits intoelastic:mainfrom
Conversation
💚 Build Succeeded
History
cc @jsoriano |
|
Thanks for the quick action on this! I rebuilt I'm not familiar with the steps between the spec and the validation, but I think an array of strings specified in JSON Schema can be empty if it doesn't also have a As mentioned elsewhere, I found a different workaround for my immediate issue. |
|
Thanks for reporting your finding, I have created an specific issue for that, it may be a general problem with arrays #630 Apart of the validation issue we may need to review how elastic-package combines these settings, as this is currently based on length checks: https://github.com/elastic/elastic-package/blob/9d8ce35eb3051b832057b37e75ad454e28069ee6/internal/fields/dependency_manager.go#L349 |
What does this PR do?
Add
expected_valuesto fields definitions.Why is it important?
This setting would be used in some packages to override values in ECS definitions (see elastic/elastic-package#1472).
It can be used in general to define expected values.
Checklist
test/packagesthat prove my change is effective.spec/changelog.yml.Related issues