-
Notifications
You must be signed in to change notification settings - Fork 26
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
[#3607] Refactor validation plugin, add BRK validator #3646
Conversation
2b2e627
to
a6eb071
Compare
6c5ae2f
to
507f855
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3646 +/- ##
==========================================
+ Coverage 96.06% 96.09% +0.03%
==========================================
Files 691 698 +7
Lines 22200 22398 +198
Branches 2565 2581 +16
==========================================
+ Hits 21326 21524 +198
Misses 603 603
Partials 271 271 ☔ View full report in Codecov by Sentry. |
ab6929b
to
70e2b6a
Compare
Blocked by adding the formio-builder v0.11.0 in a separate PR |
940910d
to
e41dac7
Compare
def function_validator(value, submission): | ||
if value != "VALID": | ||
raise DjangoValidationError("not VALID value") | ||
|
||
|
||
function_validator.value_serializer = StringValueSerializer |
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.
oh this only concerns tests to set the attribute? If we don't have any actual function-based validator implementations, just drop support for it.
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 think the next refactor PR handles this
ddba05f
to
3324c2f
Compare
97ae267
to
aab22d0
Compare
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.
Nice, now as a final step before this can get merged, a cleanup of the commit history is in order I think 😬
f7634c8
to
aa5b890
Compare
To be able to use latest typing features
aa5b890
to
e11ab50
Compare
Partly closes #3607