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:
Tetsuhiro Hiruta 2025-04-25 17:55:59 +09:00 committed by Marek Posolda
parent e9283ee71d
commit 10c0c8fa52
2 changed files with 10 additions and 0 deletions

View File

@ -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() {

View File

@ -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() {