Skip to content

Commit

Permalink
fix: fix additionalProperties (box/box-openapi#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
box-sdk-build committed Oct 23, 2024
1 parent 5e213d8 commit a9e2390
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "c238685", "specHash": "52996b6", "version": "0.1.0" }
{ "engineHash": "c238685", "specHash": "e798cb1", "version": "0.1.0" }
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Map;
import java.util.Objects;

public class ClientError {
Expand All @@ -21,7 +22,7 @@ public class ClientError {
protected String message;

@JsonProperty("context_info")
protected ClientErrorContextInfoField contextInfo;
protected Map<String, String> contextInfo;

@JsonProperty("help_url")
protected String helpUrl;
Expand Down Expand Up @@ -57,7 +58,7 @@ public String getMessage() {
return message;
}

public ClientErrorContextInfoField getContextInfo() {
public Map<String, String> getContextInfo() {
return contextInfo;
}

Expand Down Expand Up @@ -135,7 +136,7 @@ public static class ClientErrorBuilder {

protected String message;

protected ClientErrorContextInfoField contextInfo;
protected Map<String, String> contextInfo;

protected String helpUrl;

Expand All @@ -161,7 +162,7 @@ public ClientErrorBuilder message(String message) {
return this;
}

public ClientErrorBuilder contextInfo(ClientErrorContextInfoField contextInfo) {
public ClientErrorBuilder contextInfo(Map<String, String> contextInfo) {
this.contextInfo = contextInfo;
return this;
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.box.sdkgen.schemas.clienterror.ClientError;
import com.box.sdkgen.schemas.clienterror.ClientErrorCodeField;
import com.box.sdkgen.schemas.clienterror.ClientErrorContextInfoField;
import com.box.sdkgen.schemas.clienterror.ClientErrorTypeField;
import com.box.sdkgen.serialization.json.EnumWrapper;
import java.util.Objects;
Expand Down Expand Up @@ -100,7 +99,7 @@ public ConflictErrorBuilder message(String message) {
}

@Override
public ConflictErrorBuilder contextInfo(ClientErrorContextInfoField contextInfo) {
public ConflictErrorBuilder contextInfo(Map<String, String> contextInfo) {
this.contextInfo = contextInfo;
return this;
}
Expand Down

0 comments on commit a9e2390

Please sign in to comment.