{
  "description": "This file is auto-generated by scripts/prep. Do not edit manually.",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "$schema": { "type": "string" },
    "data": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "setId": {
            "type": "string",
            "pattern": "^[0-9]{2}\\.[0-9]{3}$",
            "description": "A unique identifier for this set. This is used to identify the set in the curriculum."
          },
          "name": {
            "type": "string",
            "description": "The English name for the set. This is just for identifying the name in the backend but will not be used in the app."
          },
          "comment": {
            "type": "string",
            "description": "A comment about the set. This is just for identifying the set in the backend but will not be used in the app."
          },
          "icon": {
            "type": "string",
            "enum": [
              "bible",
              "bricks",
              "candle",
              "city_light_hill",
              "city",
              "cross",
              "dm_course",
              "door",
              "dove",
              "fire",
              "flower",
              "fruit",
              "globe_hand",
              "globe",
              "grapes",
              "heart_person",
              "heart_tear",
              "heart",
              "holding_hands",
              "house",
              "jug",
              "man",
              "money_hand",
              "money",
              "net",
              "ocean",
              "people_heart",
              "people_holding_hands",
              "people_multiplying",
              "person_angry",
              "person_crouching",
              "person_crying",
              "person_healed",
              "person_heart",
              "person_mountain",
              "person_praying",
              "person_rock",
              "river",
              "scale",
              "sheep_goat",
              "sprout",
              "sun",
              "three_wheat",
              "tree",
              "triangle",
              "two_wheat",
              "wave",
              "woman"
            ],
            "description": "The icon to use for this set. Icon SVGs are defined in the app."
          },
          "lessons": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "lessonId": { "type": "string" },
                "a": {
                  "type": "string",
                  "description": "The id for the question set to use for this lesson's application chapter. Must be defined in the questions curriculum."
                },
                "f": {
                  "type": "string",
                  "description": "The id for the question set to use for this lesson's fellowship chapter. Must be defined in the questions curriculum."
                },
                "s": {
                  "type": "array",
                  "items": { "type": "string" },
                  "description": "An array of scripture passages to use with this lesson."
                }
              },
              "required": ["lessonId", "a", "f", "s"],
              "additionalProperties": false
            }
          },
          "tag": {
            "type": "string",
            "enum": ["truth", "challenge", "money", "people", "god", "jesus"],
            "description": "If a topical set, the tag is a way to further categorize the set."
          }
        },
        "required": ["setId", "name", "icon", "lessons"],
        "additionalProperties": false
      }
    }
  },
  "required": ["$schema", "data"]
}
