You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes the Ion Schema violations messages can be verbose. They are technically correct, but they may be information that doesn't convey meaning to a human.
Prevent leaking implementation details in the violations message.
Possible Solutions
Allow a type to be marked to indicate that violation messages from the constraints of that type should be suppressed. If a value fails to match that type, the violations include only "value does not match type ".
Allow a type to have a custom message when a value fails to match the type. This could replace or augment the standard messages from the Ion Schema library.
Combine 1 and 2 in some way.
Why not to do this?
The violations messages are not part of the Ion Schema specification in Ion Schema 1.0 or 2.0. Adding support for customizing the violations messages may imply that the violations messages should be part of the specification. This could be mitigated by making it an optional feature—not all implementations are required to have it, but those that do have the feature must do it in a consistent way.
The problem statement is nebulous and vague right now. We need a more compelling customer use case to take this idea any further.
Dear Reader, if you have a use case for a feature like this, please comment on this issue and let us know.
The text was updated successfully, but these errors were encountered:
Why?
Possible Solutions
Why not to do this?
Dear Reader, if you have a use case for a feature like this, please comment on this issue and let us know.
The text was updated successfully, but these errors were encountered: