{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/klisten-co-kr/json-schema/klisten-co-kr-clear-gate-request-schema.json",
  "title": "ClearGateRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/klisten-co-kr-cleargate-api-openapi.yml#/components/schemas/ClearGateRequest",
  "type": "object",
  "properties": {
    "grant_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    },
    "intent": {
      "type": "object",
      "properties": {
        "publisher_id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "resource": {
          "type": "string",
          "maxLength": 2048,
          "format": "uri"
        },
        "audience": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "purpose": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "territory": {
          "type": "string",
          "pattern": "^[A-Z]{2}$"
        },
        "redistribute": {
          "type": "boolean"
        }
      },
      "required": [
        "publisher_id",
        "resource",
        "audience",
        "purpose",
        "territory",
        "redistribute"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "grant_id",
    "intent"
  ],
  "additionalProperties": false
}