Skip to content

Commit

Permalink
14 dates default output format causes deserialization error (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
jemacineiras authored Jan 8, 2024
1 parent 7f64a90 commit eb3193f
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.sngular</groupId>
<artifactId>pact-annotation-processor</artifactId>
<version>1.2.0</version>
<version>1.2.1</version>

<name>PactDslBuilder - Annotation Processor</name>
<description>Pact DSL Builder annotation processor.</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@

import java.util.List;

import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NonNull;
import lombok.Value;
import lombok.experimental.SuperBuilder;

@Value
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
public class DslComplexField extends DslField {

Expand All @@ -29,4 +28,19 @@ public class DslComplexField extends DslField {
boolean needBuilder;

boolean empty;

@Builder
private DslComplexField(
final String name, @NonNull final DslComplexTypeEnum complexType, final List<DslField> fields, final String fieldType, final FieldValidations fieldValidations,
final boolean needBuilder, final boolean empty) {
super(name);
this.complexType = complexType;
this.fields = fields;
this.fieldType = fieldType;
this.fieldValidations = fieldValidations;
this.needBuilder = needBuilder;
this.empty = empty;
}

public static class DslComplexFieldBuilder {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

package com.sngular.annotation.processor.model;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.experimental.SuperBuilder;

@Getter
@SuperBuilder
@AllArgsConstructor
public class DslField {

private String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@

package com.sngular.annotation.processor.model;

import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Value;
import lombok.experimental.SuperBuilder;

@Value
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
public class DslSimpleField extends DslField {

Expand All @@ -30,6 +29,24 @@ public class DslSimpleField extends DslField {
boolean onlyValueFunction;

boolean empty;

@Builder
private DslSimpleField(
final String name, final String fieldType, final String functionByType, final Object defaultValue, final String suffixValue, final String formatValue,
final FieldValidations fieldValidations,
final boolean onlyValueFunction, final boolean empty) {
super(name);
this.fieldType = fieldType;
this.functionByType = functionByType;
this.defaultValue = defaultValue;
this.suffixValue = suffixValue;
this.formatValue = formatValue;
this.fieldValidations = fieldValidations;
this.onlyValueFunction = onlyValueFunction;
this.empty = empty;
}

public static class DslSimpleFieldBuilder {}
}


Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,6 @@ public class FieldValidations {

String regex;

public static class FieldValidationsBuilder {}

}

0 comments on commit eb3193f

Please sign in to comment.