{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://portal.yesilveri.tr/standart/kades-json/v1.1.0/kades-metodoloji.schema.json",
  "title": "kadesMetodolojiSemasi",
  "description": "KADES-JSON kades-metodoloji şeması\n\nKOBİZON Proje Danışmanlık ve Yazılım Tic. Ltd. Şti. — Sürüm 1.1.0",
  "$ref": "#/definitions/kadesMetodolojiSemasi",
  "definitions": {
    "kadesMetodolojiSemasi": {
      "type": "object",
      "properties": {
        "surum": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$"
        },
        "faktorSetiSurumu": {
          "type": "string",
          "pattern": "^[A-Z]{2,6}-(19|20)\\d{2}\\.(0|[1-9]\\d*)$"
        },
        "motorSurumu": {
          "type": "string",
          "pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$"
        },
        "gwpSeti": {
          "type": "string",
          "enum": [
            "AR5",
            "AR6"
          ]
        },
        "hesaplamaTarihi": {
          "type": "string",
          "format": "date-time"
        },
        "yuvarlama": {
          "type": "object",
          "properties": {
            "hassasiyet": {
              "type": "integer",
              "minimum": 0
            },
            "mod": {
              "type": "string",
              "const": "ROUND_HALF_UP"
            },
            "sonucOndalik": {
              "type": "integer",
              "minimum": 0
            }
          },
          "required": [
            "hassasiyet",
            "mod",
            "sonucOndalik"
          ],
          "additionalProperties": false
        },
        "standartlar": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 3,
            "maxLength": 200
          },
          "minItems": 1,
          "default": [
            "GHG Protocol Corporate Standard",
            "GHG Protocol Scope 2 Guidance",
            "ISO 14064-1:2018"
          ]
        },
        "aciklama": {
          "type": "string",
          "maxLength": 3000
        }
      },
      "required": [
        "surum",
        "faktorSetiSurumu",
        "motorSurumu",
        "gwpSeti",
        "hesaplamaTarihi",
        "yuvarlama"
      ],
      "additionalProperties": false
    }
  }
}
