{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ticket",
  "description": "Bilet / QR. `code` QR içeriğidir; istemci çizer.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "version",
    "code",
    "title"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "ticket"
      ]
    },
    "version": {
      "type": "integer",
      "enum": [
        1
      ]
    },
    "tone": {
      "type": "string",
      "enum": [
        "neutral",
        "success",
        "warning",
        "danger",
        "brand"
      ]
    },
    "brand_color": {
      "type": "string",
      "enum": [
        "mavi",
        "turuncu",
        "mor",
        "pembe",
        "altin",
        "yesil",
        "turkuaz"
      ]
    },
    "code": {
      "type": "string",
      "maxLength": 1024,
      "minLength": 1
    },
    "title": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1
    },
    "badge": {
      "type": "string",
      "maxLength": 40
    },
    "details": {
      "type": "array",
      "minItems": 0,
      "maxItems": 4,
      "items": {
        "type": "string",
        "maxLength": 120
      }
    },
    "hint": {
      "type": "string",
      "maxLength": 80
    }
  }
}
