{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://portal.yesilveri.tr/standart/kades-json/v1.2.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.2.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",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "yuvarlama": {
          "type": "object",
          "properties": {
            "hassasiyet": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "mod": {
              "type": "string",
              "const": "ROUND_HALF_UP"
            },
            "sonucOndalik": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "hassasiyet",
            "mod",
            "sonucOndalik"
          ],
          "additionalProperties": false
        },
        "standartlar": {
          "default": [
            "GHG Protocol Corporate Standard",
            "GHG Protocol Scope 2 Guidance",
            "ISO 14064-1:2018"
          ],
          "minItems": 1,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 3,
            "maxLength": 200
          }
        },
        "aciklama": {
          "type": "string",
          "maxLength": 3000
        }
      },
      "required": [
        "surum",
        "faktorSetiSurumu",
        "motorSurumu",
        "gwpSeti",
        "hesaplamaTarihi",
        "yuvarlama"
      ],
      "additionalProperties": false
    }
  }
}
