Skip to content

Commit

Permalink
adds STANDARD_VALIDATIONS field
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangsa committed Mar 16, 2024
1 parent 8a0a00c commit ace7711
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/io/github/zenwave360/zdl/ZdlParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public class ZdlParser {

public static final List<String> STANDARD_FIELD_TYPES = List.of("String", "Integer", "Long", "int", "long", "BigDecimal", "Float", "float", "Double", "double", "Enum", "Boolean", "boolean", "LocalDate", "ZonedDateTime", "Instant", "Duration", "UUID", "byte", "byte[]", "Blob", "AnyBlob", "ImageBlob", "TextBlob");

public static final List<String> STANDARD_VALIDATIONS = List.of("required", "unique", "min", "max", "minlength", "maxlength", "pattern");

private List<String> standardFieldTypes = STANDARD_FIELD_TYPES;
private List<String> extraFieldTypes = List.of();
public ZdlParser withStandardFieldTypes(List<String> standardFieldTypes) {
Expand Down

0 comments on commit ace7711

Please sign in to comment.