Skip to content

Commit

Permalink
fix: fix invalid case in models
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUnderScorer committed Dec 17, 2024
1 parent 211421d commit 5d1431e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/proud-moles-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fingerprint-pro-server-api-java-sdk": patch
---

Fix invalid phrasing for methods that append to lists in the models
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ public DeprecatedGeolocation subdivisions(List<GeolocationSubdivision> subdivisi
return this;
}

public DeprecatedGeolocation addsubdivisionsItem(GeolocationSubdivision subdivisionsItem) {
public DeprecatedGeolocation addGeolocationSubdivisionItem(GeolocationSubdivision subdivisionsItem) {
if (this.subdivisions == null) {
this.subdivisions = new ArrayList<>();
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/main/java/com/fingerprint/model/Geolocation.java
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public Geolocation subdivisions(List<GeolocationSubdivision> subdivisions) {
return this;
}

public Geolocation addsubdivisionsItem(GeolocationSubdivision subdivisionsItem) {
public Geolocation addGeolocationSubdivisionItem(GeolocationSubdivision subdivisionsItem) {
if (this.subdivisions == null) {
this.subdivisions = new ArrayList<>();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public RelatedVisitorsResponse relatedVisitors(List<RelatedVisitor> relatedVisit
return this;
}

public RelatedVisitorsResponse addrelatedVisitorsItem(RelatedVisitor relatedVisitorsItem) {
public RelatedVisitorsResponse addRelatedVisitorItem(RelatedVisitor relatedVisitorsItem) {
this.relatedVisitors.add(relatedVisitorsItem);
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public VisitorsGetResponse visits(List<Visit> visits) {
return this;
}

public VisitorsGetResponse addvisitsItem(Visit visitsItem) {
public VisitorsGetResponse addVisitItem(Visit visitsItem) {
this.visits.add(visitsItem);
return this;
}
Expand Down
2 changes: 1 addition & 1 deletion template/pojo.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
}
{{#isArray}}

public {{classname}} add{{nameInCamelCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) {
public {{classname}} add{{items.datatypeWithEnum}}Item({{{items.datatypeWithEnum}}} {{name}}Item) {
{{#vendorExtensions.x-is-jackson-optional-nullable}}
if (this.{{name}} == null || !this.{{name}}.isPresent()) {
this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{{defaultValue}}});
Expand Down

0 comments on commit 5d1431e

Please sign in to comment.