[saved objects] Type validation enhancements #122343
Labels
enhancement
New value added to drive a business result
Feature:Saved Objects
impact:medium
Addressing this issue will have a medium level of impact on the quality/strength of our product.
loe:needs-research
This issue requires some research before it can be worked on or estimated
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
In #104088 we agreed that for our initial implementation of Saved Objects type validations, we'd stick with validating types during
create
andbulkCreate
operations. This was implemented in #118969However, in the course of our discussion on the issue, we identified a few possible enhancements to consider for the future:
update
operations. This is tricky because it means suddenly all fields in a provided schema would need to become optional.create
, it means that a migration could fail due to a corrupt object, but instead of getting a useful error message, you'd just get an error from the migration itself. However, this is a departure from how migration functions are currently implemented, so we would need to weigh how we'd approach something like this. More details in [Saved Objects] introduce per-type validation schemas. #104088 (comment)The text was updated successfully, but these errors were encountered: