{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Loyalty Card",
  "description": "Ten-stamp coffee punch card. The tenth stamp is the reward. Set how many stamps are filled for the demo state.",
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "title": "Title",
      "default": "Buy nine, tenth on us",
      "x-editor": "text"
    },
    "subtitle": {
      "type": "string",
      "title": "Subtitle (hand-drawn)",
      "x-editor": "text"
    },
    "filled": {
      "type": "number",
      "title": "Stamps Filled",
      "description": "How many of the ten stamps are punched (0-10)",
      "default": 0,
      "minimum": 0,
      "maximum": 10,
      "x-editor": "number"
    },
    "reward": {
      "type": "string",
      "title": "Reward Line",
      "x-editor": "text"
    },
    "footnote": {
      "type": "string",
      "title": "Footnote (hand-drawn)",
      "x-editor": "text"
    }
  }
}
