Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sschnabe committed May 21, 2024
1 parent d09b2da commit c43cd7a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions gen/main/java/testmodel/jaxrs/EnumerationModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public EnumerationModel string(EnumerationString string) {


@JsonProperty("string")
@Valid public EnumerationString getString() {
public EnumerationString getString() {
return string;
}

Expand All @@ -145,7 +145,7 @@ public EnumerationModel stringDefault(EnumerationStringDefault stringDefault) {


@JsonProperty("string-default")
@Valid public EnumerationStringDefault getStringDefault() {
public EnumerationStringDefault getStringDefault() {
return stringDefault;
}

Expand Down
2 changes: 1 addition & 1 deletion gen/main/java/testmodel/jaxrs/InheritanceWithEnumType.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public InheritanceWithEnumType type(InheritanceWithEnumTypeEnum type) {


@JsonProperty("type")
@Valid public InheritanceWithEnumTypeEnum getType() {
public InheritanceWithEnumTypeEnum getType() {
return type;
}

Expand Down
28 changes: 14 additions & 14 deletions gen/main/java/testmodel/jaxrs/Model.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public Model date(LocalDate date) {


@JsonProperty("date")
@Valid public LocalDate getDate() {
public LocalDate getDate() {
return date;
}

Expand All @@ -196,7 +196,7 @@ public Model dateWithExample(LocalDate dateWithExample) {


@JsonProperty("dateWithExample")
@Valid public LocalDate getDateWithExample() {
public LocalDate getDateWithExample() {
return dateWithExample;
}

Expand All @@ -214,7 +214,7 @@ public Model dateTime(OffsetDateTime dateTime) {


@JsonProperty("date-time")
@Valid public OffsetDateTime getDateTime() {
public OffsetDateTime getDateTime() {
return dateTime;
}

Expand All @@ -232,7 +232,7 @@ public Model dateTimeWithExample(OffsetDateTime dateTimeWithExample) {


@JsonProperty("date-timeWithExample")
@Valid public OffsetDateTime getDateTimeWithExample() {
public OffsetDateTime getDateTimeWithExample() {
return dateTimeWithExample;
}

Expand Down Expand Up @@ -268,7 +268,7 @@ public Model binary(File binary) {


@JsonProperty("binary")
@Valid public File getBinary() {
public File getBinary() {
return binary;
}

Expand Down Expand Up @@ -478,9 +478,9 @@ public Model putMapItem(String key, String mapItem) {
return this;
}

public Model removeMapItem(String mapItem) {
if (mapItem != null && this.map != null) {
this.map.remove(mapItem);
public Model removeMapItem(String key) {
if (this.map != null) {
this.map.remove(key);
}

return this;
Expand Down Expand Up @@ -512,9 +512,9 @@ public Model putMapWithExampleItem(String key, String mapWithExampleItem) {
return this;
}

public Model removeMapWithExampleItem(String mapWithExampleItem) {
if (mapWithExampleItem != null && this.mapWithExample != null) {
this.mapWithExample.remove(mapWithExampleItem);
public Model removeMapWithExampleItem(String key) {
if (this.mapWithExample != null) {
this.mapWithExample.remove(key);
}

return this;
Expand Down Expand Up @@ -615,9 +615,9 @@ public Model putOptionalMapItem(String key, String optionalMapItem) {
return this;
}

public Model removeOptionalMapItem(String optionalMapItem) {
if (optionalMapItem != null && this.optionalMap != null) {
this.optionalMap.remove(optionalMapItem);
public Model removeOptionalMapItem(String key) {
if (this.optionalMap != null) {
this.optionalMap.remove(key);
}

return this;
Expand Down

0 comments on commit c43cd7a

Please sign in to comment.