-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
form: allow to bypass "client-side" validation (#21)
Co-authored-by: Réda Housni Alaoui <[email protected]>
- Loading branch information
1 parent
8822910
commit 0a33a15
Showing
3 changed files
with
155 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
core/src/main/java/com/cosium/hal_mock_mvc/PropertyValidationOption.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.cosium.hal_mock_mvc; | ||
|
||
/** | ||
* @author Sébastien Le Ray | ||
* @author Réda Housni Alaoui | ||
*/ | ||
public sealed interface PropertyValidationOption permits PropertyValidationOption.Immediate { | ||
enum Immediate implements PropertyValidationOption { | ||
/** Do not fail if writing to a property not declared by the template */ | ||
DO_NOT_FAIL_IF_NOT_DECLARED, | ||
/** Do not fail if writing to a property declared as read-only by the template */ | ||
DO_NOT_FAIL_IF_DECLARED_READ_ONLY | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters