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

응답 변환 고급 정책 구성 참조

원문 보기 위키 갱신

응답 변환 고급 정책 구성 참조 (Response Transformer Advanced Policy Configuration Reference)

이 문서는 Response Transformer Advanced 정책의 구성 참조 자료예요. 정책 설정에 쓰이는 JSON 스키마를 항목별로 보여주면서, remove, rename, replace, add 같은 변환 동작마다 어떤 파라미터를 사용할 수 있는지 정리해 줘요. 헤더나 JSON 본문을 수정하고, if_status로 특정 응답 상태 코드에만 변환을 적용하는 설정을 만들 때 참고하면 좋아요

출처: 문서

본문

{
  "properties": {
    "config": {
      "type": "object",
      "properties": {
        "remove": {
          "type": "object",
          "properties": {
            "json": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            },
            "headers": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            },
            "if_status": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            }
          }
        },
        "rename": {
          "type": "object",
          "properties": {
            "headers": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            },
            "if_status": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            }
          }
        },
        "replace": {
          "type": "object",
          "properties": {
            "if_status": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            },
            "body": {
              "type": "string",
              "description": "String with which to replace the entire response body."
            },
            "json": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            },
            "json_types": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "boolean",
                  "number",
                  "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"
                ]
              },
              "default": []
            },
            "headers": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            },
            "if_status": {
              "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"
                ]
              },
              "default": []
            },
            "headers": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            },
            "if_status": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            }
          }
        },
        "allow": {
          "type": "object",
          "properties": {
            "json": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "transform": {
          "type": "object",
          "properties": {
            "functions": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            },
            "if_status": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            },
            "json": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            }
          }
        },
        "dots_in_keys": {
          "type": "boolean",
          "description": "Whether dots (for example, `customers.info.phone`) should be treated as part of a property name or used to descend into nested JSON objects..",
          "default": true
        }
      }
    }
  }
}

더 알아보기 (Learn more)

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