Skip to content
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

14 dates default output format causes deserialization error #50

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
13b1176
Building test
jemacineiras Nov 3, 2023
b6c5203
Merge branch 'main' into 14-dates-default-output-format-causes-deseri…
jemacineiras Nov 6, 2023
7d17698
Mocking Random Generator.
jemacineiras Nov 9, 2023
f130eab
Merge branch 'main' into 14-dates-default-output-format-causes-deseri…
jemacineiras Nov 9, 2023
22d4160
Add custom Dates Format
jemacineiras Nov 9, 2023
69d82ab
Merge branch 'main' into 14-dates-default-output-format-causes-deseri…
jemacineiras Nov 9, 2023
4d0778e
Add Test
jemacineiras Nov 9, 2023
59fdb1a
Add Test
jemacineiras Nov 9, 2023
fe524fe
Add Test
jemacineiras Nov 10, 2023
c64b568
Add Test
jemacineiras Nov 10, 2023
5b180b7
Standardize test section
apenlor Nov 15, 2023
51d0377
Merge branch 'main' into 14-dates-default-output-format-causes-deseri…
jemacineiras Nov 15, 2023
68ae449
README.md codacy corrections
apenlor Nov 15, 2023
be4cb7d
README.md codacy corrections
apenlor Nov 15, 2023
4ccf26a
README.md codacy corrections
apenlor Nov 15, 2023
4e879cd
Fix import & format
apenlor Nov 15, 2023
e55a625
Merge branch 'main' into 14-dates-default-output-format-causes-deseri…
jemacineiras Nov 21, 2023
2f8497d
#14 Merge Master fix things
jemacineiras Nov 22, 2023
4ae4e38
Align style files with main branch
apenlor Nov 22, 2023
ece461a
Merge branch 'main' into 14-dates-default-output-format-causes-deseri…
jemacineiras Nov 22, 2023
9c6a9f6
#14 Merge Master fix things
jemacineiras Nov 22, 2023
5bcfb6b
#14 Fix MarkdownLint complains
jemacineiras Nov 22, 2023
4150bd6
#14 fix Codacy issues
jemacineiras Nov 22, 2023
6eb1e5b
Merge branch 'main' into 14-dates-default-output-format-causes-deseri…
jemacineiras Nov 24, 2023
f1bae0c
Merge branch 'main' into 14-dates-default-output-format-causes-deseri…
jemacineiras Nov 29, 2023
804b6cd
#14 Merge Master fix things
jemacineiras Nov 29, 2023
29c2120
Short random values limitation fix
apenlor Nov 29, 2023
d9506eb
BigInteger imports missed
apenlor Nov 29, 2023
dc279bb
#14 Fix numbers
jemacineiras Dec 1, 2023
016cd77
Merge remote-tracking branch 'origin/14-dates-default-output-format-c…
jemacineiras Dec 1, 2023
73c2e00
#14 Fix Date Parser
jemacineiras Dec 1, 2023
246c501
#14 Fix Date Parser
jemacineiras Dec 11, 2023
b4d22e1
Merge branch 'main' into 14-dates-default-output-format-causes-deseri…
jemacineiras Dec 20, 2023
e24dd93
#14 Merge with Master
jemacineiras Dec 20, 2023
edd403e
#14 Merge with Master
jemacineiras Dec 20, 2023
9de4f58
#14 Issue building
jemacineiras Jan 8, 2024
adfabf5
#14 Issue building
jemacineiras Jan 8, 2024
25ea657
#14 Issue building
jemacineiras Jan 8, 2024
49d68f9
Merge branch 'main' into 14-dates-default-output-format-causes-deseri…
jemacineiras Jan 8, 2024
3390f1d
#14 Issue building
jemacineiras Jan 8, 2024
7998346
Merge remote-tracking branch 'origin/14-dates-default-output-format-c…
jemacineiras Jan 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
boolean onlyValueFunction;

boolean empty;

@Builder
private DslSimpleField(

Check notice on line 34 in src/main/java/com/sngular/annotation/processor/model/DslSimpleField.java

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/main/java/com/sngular/annotation/processor/model/DslSimpleField.java#L34

More than 7 parameters (found 9).
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 {}

}
Loading