{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "nps",
  "description": "0–10 öneri ölçeği.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "version",
    "question"
  ],
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "nps"
      ]
    },
    "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
    },
    "low_label": {
      "type": "string",
      "maxLength": 30
    },
    "high_label": {
      "type": "string",
      "maxLength": 30
    },
    "selected": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10
    }
  },
  "x-inki-eylem": [
    {
      "action": "select",
      "values": {
        "value": "0..10"
      }
    }
  ]
}
