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

WebSocket Validator 정책 구성 참조

원문 보기 위키 갱신

WebSocket Validator 정책 구성 참조 (WebSocket Validator Policy Configuration Reference)

이 문서는 WebSocket Validator 정책의 설정 옵션을 JSON 스키마 형태로 정리한 구성 참조 자료예요. 클라이언트와 업스트림 방향 각각에 대해 텍스트 프레임과 바이너리 프레임을 검증할 때 사용하는 schema와 type 필드가 어떤 역할을 하는지 보여줘요. 검증 라이브러리는 현재 draft4만 지원한다는 점과 각 필드의 필수 여부도 함께 확인할 수 있어요

출처: 문서

본문

{
  "properties": {
    "config": {
      "type": "object",
      "properties": {
        "client": {
          "type": "object",
          "properties": {
            "text": {
              "type": "object",
              "properties": {
                "schema": {
                  "type": "string",
                  "description": "Schema used to validate upstream-originated binary frames. The semantics of this field depend on the validation type set by `config.upstream.binary.type`."
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "draft4"
                  ],
                  "description": "The corresponding validation library for `config.upstream.binary.schema`. Currently, only `draft4` is supported."
                }
              },
              "required": [
                "schema",
                "type"
              ]
            },
            "binary": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "draft4"
                  ],
                  "description": "The corresponding validation library for `config.upstream.binary.schema`. Currently, only `draft4` is supported."
                },
                "schema": {
                  "type": "string",
                  "description": "Schema used to validate upstream-originated binary frames. The semantics of this field depend on the validation type set by `config.upstream.binary.type`."
                }
              },
              "required": [
                "schema",
                "type"
              ]
            }
          }
        },
        "upstream": {
          "type": "object",
          "properties": {
            "text": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "draft4"
                  ],
                  "description": "The corresponding validation library for `config.upstream.binary.schema`. Currently, only `draft4` is supported."
                },
                "schema": {
                  "type": "string",
                  "description": "Schema used to validate upstream-originated binary frames. The semantics of this field depend on the validation type set by `config.upstream.binary.type`."
                }
              },
              "required": [
                "schema",
                "type"
              ]
            },
            "binary": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "draft4"
                  ],
                  "description": "The corresponding validation library for `config.upstream.binary.schema`. Currently, only `draft4` is supported."
                },
                "schema": {
                  "type": "string",
                  "description": "Schema used to validate upstream-originated binary frames. The semantics of this field depend on the validation type set by `config.upstream.binary.type`."
                }
              },
              "required": [
                "schema",
                "type"
              ]
            }
          }
        }
      }
    }
  }
}

더 알아보기 (Learn more)

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