mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-10 15:32:05 -03:30
Add OpenAPI annotation to JSON object of ClientPolicycy representations
Closes #32600 Signed-off-by: Tetsuhiro Hiruta <tetsuhiro.hiruta.sg@hitachi.com>
This commit is contained in:
parent
e9283ee71d
commit
10c0c8fa52
@ -22,6 +22,8 @@ import java.util.Objects;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import org.eclipse.microprofile.openapi.annotations.enums.SchemaType;
|
||||
import org.eclipse.microprofile.openapi.annotations.media.Schema;
|
||||
|
||||
/**
|
||||
* @author <a href="mailto:mposolda@redhat.com">Marek Posolda</a>
|
||||
@ -32,6 +34,9 @@ public class ClientPolicyConditionRepresentation {
|
||||
private String conditionProviderId;
|
||||
|
||||
@JsonProperty("configuration")
|
||||
@Schema(type= SchemaType.OBJECT,
|
||||
description = "Configuration settings as a JSON object",
|
||||
additionalProperties = Schema.True.class)
|
||||
private JsonNode configuration;
|
||||
|
||||
public String getConditionProviderId() {
|
||||
|
||||
@ -22,6 +22,8 @@ import java.util.Objects;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import org.eclipse.microprofile.openapi.annotations.enums.SchemaType;
|
||||
import org.eclipse.microprofile.openapi.annotations.media.Schema;
|
||||
|
||||
/**
|
||||
* @author <a href="mailto:mposolda@redhat.com">Marek Posolda</a>
|
||||
@ -32,6 +34,9 @@ public class ClientPolicyExecutorRepresentation {
|
||||
private String executorProviderId;
|
||||
|
||||
@JsonProperty("configuration")
|
||||
@Schema(type=SchemaType.OBJECT,
|
||||
description = "Configuration settings as a JSON object",
|
||||
additionalProperties = Schema.True.class)
|
||||
private JsonNode configuration;
|
||||
|
||||
public String getExecutorProviderId() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user