{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://portal.yesilveri.tr/standart/kades-json/v1.1.0/kades-ai-kullanimi.schema.json",
  "title": "kadesAiKullanimiSemasi",
  "description": "KADES-JSON kades-ai-kullanimi şeması\n\nKOBİZON Proje Danışmanlık ve Yazılım Tic. Ltd. Şti. — Sürüm 1.1.0",
  "$ref": "#/definitions/kadesAiKullanimiSemasi",
  "definitions": {
    "kadesAiKullanimiSemasi": {
      "type": "object",
      "properties": {
        "kullanildiMi": {
          "type": "boolean"
        },
        "satirSayisi": {
          "type": "integer",
          "minimum": 0
        },
        "emisyonKgco2e": {
          "type": "string",
          "minLength": 1,
          "pattern": "^-?\\d+(\\.\\d+)?$"
        },
        "payYuzde": {
          "type": "string",
          "minLength": 1,
          "pattern": "^-?\\d+(\\.\\d+)?$"
        },
        "yontemler": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "belge_okuma_ocr",
              "efatura_ayristirma",
              "faktor_eslestirme",
              "anomali_tespiti"
            ]
          },
          "default": []
        },
        "modeller": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "ad": {
                "type": "string",
                "minLength": 2,
                "maxLength": 200
              },
              "surum": {
                "type": "string",
                "minLength": 1,
                "maxLength": 60
              },
              "gorev": {
                "type": "string",
                "enum": [
                  "belge_okuma_ocr",
                  "efatura_ayristirma",
                  "faktor_eslestirme",
                  "anomali_tespiti"
                ]
              },
              "ortalamaGuvenSkoru": {
                "type": "string",
                "minLength": 1,
                "pattern": "^-?\\d+(\\.\\d+)?$"
              }
            },
            "required": [
              "ad",
              "surum",
              "gorev"
            ],
            "additionalProperties": false
          },
          "default": []
        },
        "onayAkisiBeyani": {
          "type": "string",
          "minLength": 20,
          "maxLength": 1000
        }
      },
      "required": [
        "kullanildiMi",
        "satirSayisi",
        "emisyonKgco2e",
        "payYuzde",
        "onayAkisiBeyani"
      ],
      "additionalProperties": false
    }
  }
}
