본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

응답 트랜스포머 정책 구성 참조

원문 보기 위키 갱신

응답 트랜스포머 정책 구성 참조 (Response Transformer Policy Configuration Reference)

이 문서는 응답을 변환하는 Response Transformer 정책의 구성 옵션을 JSON 스키마 형태로 정리한 참조 자료예요. replace, add, append 동작별로 JSON 본문과 헤더를 어떻게 수정할 수 있는지 필드 단위로 확인할 수 있어요. 특히 JSON 속성을 추가할 때 반환되는 값의 타입을 boolean, number, string 중에서 지정하는 json_types 옵션도 함께 설명해요.

출처: 문서

본문

{
  "properties": {
    "config": {
      "type": "object",
      "properties": {
        "replace": {
          "type": "object",
          "properties": {
            "json": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            },
            "json_types": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "boolean",
                  "number",
                  "string"
                ]
              },
              "description": "List of JSON type names. Specify the types of the JSON values returned when appending\nJSON properties. Each string element can be one of: boolean, number, or string.",
              "default": []
            },
            "headers": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            }
          }
        },
        "add": {
          "type": "object",
          "properties": {
            "json": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            },
            "json_types": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "boolean",
                  "number",
                  "string"
                ]
              },
              "description": "List of JSON type names. Specify the types of the JSON values returned when appending\nJSON properties. Each string element can be one of: boolean, number, or string.",
              "default": []
            },
            "headers": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            }
          }
        },
        "append": {
          "type": "object",
          "properties": {
            "json": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            },
            "json_types": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "boolean",
                  "number",
                  "string"
                ]
              },
              "description": "List of JSON type names. Specify the types of the JSON values returned when appending\nJSON properties. Each string element can be one of: boolean, number, or string.",
              "default": []
            },
            "headers": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            }
          }
        },
        "remove": {
          "type": "object",
          "properties": {
            "headers": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            },
            "json": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            }
          }
        },
        "rename": {
          "type": "object",
          "properties": {
            "headers": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            },
            "json": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            }
          }
        }
      }
    }
  }
}

더 알아보기 (Learn more)

이 문서에는 원문에서 추출한 별도의 관련 문서 링크가 없어요.