Skip to content

Commit

Permalink
Update APIs to support custom authentication management.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thisara-Welmilla committed Nov 28, 2024
1 parent b33ef9f commit 8e8632f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static TypeEnum fromValue(String value) {
}

private TypeEnum type;
private Map<String, Object> properties = new HashMap<>();
private Map<String, Object> properties = null;


/**
Expand Down Expand Up @@ -100,11 +100,9 @@ public AuthenticationType properties(Map<String, Object> properties) {
return this;
}

@ApiModelProperty(example = "{\"username\":\"auth_username\",\"password\":\"auth_password\"}", required = true, value = "")
@ApiModelProperty(example = "{\"username\":\"auth_username\",\"password\":\"auth_password\"}", value = "")
@JsonProperty("properties")
@Valid
@NotNull(message = "Property properties cannot be null.")

public Map<String, Object> getProperties() {
return properties;
}
Expand All @@ -114,6 +112,9 @@ public void setProperties(Map<String, Object> properties) {


public AuthenticationType putPropertiesItem(String key, Object propertiesItem) {
if (this.properties == null) {
this.properties = new HashMap<>();
}
this.properties.put(key, propertiesItem);
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2895,7 +2895,6 @@ components:
type: object
required:
- type
- properties
properties:
type:
type: string
Expand Down

0 comments on commit 8e8632f

Please sign in to comment.