-
Notifications
You must be signed in to change notification settings - Fork 10
Feature/84 improve get form validation result.field errors #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
84a68c4
2eaae22
dd1a69b
8a99804
c5d2fd6
2190f9b
3b3ec1a
f3f376d
c45c6e5
f13acdc
bd68022
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,4 +10,4 @@ lib/coverage/ | |
| yarn.lock | ||
| .vscode/ | ||
| npm-debug.log | ||
| lib/package-lock\.json | ||
| package-lock\.json | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,12 +24,12 @@ export class FieldValidationResult { | |
|
|
||
| export class FormValidationResult { | ||
| succeeded: boolean; | ||
| fieldErrors: FieldValidationResult[]; | ||
| fieldErrors: { [key: string]: FieldValidationResult }; | ||
| formGlobalErrors: FieldValidationResult[]; | ||
|
|
||
| constructor() { | ||
| this.succeeded = false; | ||
| this.fieldErrors = []; | ||
| this.fieldErrors = {}; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. MMM... I think this is a breaking change, should we go for a major release?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I think it should be major |
||
| } | ||
| } | ||
|
|
||
|
|
||
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember what was the intention when we create the readme about this commented code, dou you know why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see it's dumping the result, it's from a previous version (even previous that current)