diff --git a/components/org.wso2.carbon.identity.api.server.configs/org.wso2.carbon.identity.api.server.configs.v1/src/gen/java/org/wso2/carbon/identity/api/server/configs/v1/model/Authenticator.java b/components/org.wso2.carbon.identity.api.server.configs/org.wso2.carbon.identity.api.server.configs.v1/src/gen/java/org/wso2/carbon/identity/api/server/configs/v1/model/Authenticator.java index 8309228fdf..fb0f3a692e 100644 --- a/components/org.wso2.carbon.identity.api.server.configs/org.wso2.carbon.identity.api.server.configs.v1/src/gen/java/org/wso2/carbon/identity/api/server/configs/v1/model/Authenticator.java +++ b/components/org.wso2.carbon.identity.api.server.configs/org.wso2.carbon.identity.api.server.configs.v1/src/gen/java/org/wso2/carbon/identity/api/server/configs/v1/model/Authenticator.java @@ -112,8 +112,7 @@ public static TypeEnum fromValue(String value) { private List properties = null; - private List endpoint = null; - + private Endpoint endpoint; /** **/ @@ -317,7 +316,7 @@ public Authenticator addPropertiesItem(AuthenticatorProperty propertiesItem) { /** **/ - public Authenticator endpoint(List endpoint) { + public Authenticator endpoint(Endpoint endpoint) { this.endpoint = endpoint; return this; @@ -326,22 +325,14 @@ public Authenticator endpoint(List endpoint) { @ApiModelProperty(value = "") @JsonProperty("endpoint") @Valid - public List getEndpoint() { + public Endpoint getEndpoint() { return endpoint; } - public void setEndpoint(List endpoint) { + public void setEndpoint(Endpoint endpoint) { this.endpoint = endpoint; } - public Authenticator addEndpointItem(Endpoint endpointItem) { - if (this.endpoint == null) { - this.endpoint = new ArrayList<>(); - } - this.endpoint.add(endpointItem); - return this; - } - @Override public boolean equals(java.lang.Object o) { diff --git a/components/org.wso2.carbon.identity.api.server.configs/org.wso2.carbon.identity.api.server.configs.v1/src/main/java/org/wso2/carbon/identity/api/server/configs/v1/core/ServerConfigManagementService.java b/components/org.wso2.carbon.identity.api.server.configs/org.wso2.carbon.identity.api.server.configs.v1/src/main/java/org/wso2/carbon/identity/api/server/configs/v1/core/ServerConfigManagementService.java index 9549513dfc..86fa191e50 100644 --- a/components/org.wso2.carbon.identity.api.server.configs/org.wso2.carbon.identity.api.server.configs.v1/src/main/java/org/wso2/carbon/identity/api/server/configs/v1/core/ServerConfigManagementService.java +++ b/components/org.wso2.carbon.identity.api.server.configs/org.wso2.carbon.identity.api.server.configs.v1/src/main/java/org/wso2/carbon/identity/api/server/configs/v1/core/ServerConfigManagementService.java @@ -848,7 +848,7 @@ private void resolveEndpointConfigurationForAuthenticatorFromConfig( UserDefinedAuthenticatorEndpointConfig endpointConfig = config.getEndpointConfig(); Endpoint endpoint = new Endpoint(); endpoint.setUri(endpointConfig.getAuthenticatorEndpointUri()); - authenticator.addEndpointItem(endpoint); + authenticator.endpoint(endpoint); } private void setAuthenticatorProperties(LocalAuthenticatorConfig config, Authenticator authenticator) { diff --git a/components/org.wso2.carbon.identity.api.server.configs/org.wso2.carbon.identity.api.server.configs.v1/src/main/resources/configs.yaml b/components/org.wso2.carbon.identity.api.server.configs/org.wso2.carbon.identity.api.server.configs.v1/src/main/resources/configs.yaml index b5705fa4f0..5632a77126 100644 --- a/components/org.wso2.carbon.identity.api.server.configs/org.wso2.carbon.identity.api.server.configs.v1/src/main/resources/configs.yaml +++ b/components/org.wso2.carbon.identity.api.server.configs/org.wso2.carbon.identity.api.server.configs.v1/src/main/resources/configs.yaml @@ -1255,8 +1255,6 @@ components: items: $ref: '#/components/schemas/AuthenticatorProperty' endpoint: - type: array - items: $ref: '#/components/schemas/Endpoint' required: - name