-
Notifications
You must be signed in to change notification settings - Fork 11
Define unified Gavel validation result shape #48
Comments
I find current structure of the validation result being in a good shape, yet there are some points I'd like to address in the improvements phase.
Nevertheless,
Exposing which validator is used is a rather implementation detail and I can't see it useful for the end user, as the validators themselves are not a part of Gavel's public API.
Being marked as optional in the documentation,
I suggest for a field validation result to include its expected and real values: interface FieldResult {
validator?: string
realType: string
expectedType?: string
values: {
real: string
expected: string
}
} Motivation:
|
Findings from
|
My comments:
|
Regarding omitting the We should verify where those diff chunks come from, but I wouldn't expect anything else but the database. In case that moving data to a proper domain (gavel result) shouldn't be a problem. |
🎉 This issue has been resolved in version 4.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
We must define a unified validation result Object structure for Gavel.
Motivation
actual
/expected
values of individual fields, normalize pointers format, adjust fields results to be easily printed out).The text was updated successfully, but these errors were encountered: