{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "mood",
  "description": "Duygu / puan ölçeği. `style:\"faces\"` yüzler (etiketli), `\"stars\"` yıldız.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "version",
    "question",
    "scale"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "mood"
      ]
    },
    "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"
      ]
    },
    "question": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1
    },
    "style": {
      "type": "string",
      "enum": [
        "faces",
        "stars"
      ]
    },
    "scale": {
      "type": "integer",
      "minimum": 3,
      "maximum": 7
    },
    "labels": {
      "type": "array",
      "minItems": 0,
      "maxItems": 7,
      "items": {
        "type": "string",
        "maxLength": 20
      }
    },
    "selected": {
      "type": "integer",
      "minimum": 1,
      "maximum": 7
    }
  },
  "x-inki-eylem": [
    {
      "action": "select",
      "values": {
        "value": "1..scale"
      }
    }
  ]
}
