{
  "$schema": "http://json-schema.org/draft-06/schema",
  "type": "object",
  "description": "A configuration file for use in the gltf-bundle tool.",
  "properties": {
    "name": {
      "type": "string",
      "description": "The name of the bundle."
    },
    "output": {
      "type": "object",
      "properties": {
        "filePath": {
          "type": "string"
        }
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "authors": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              }
            }
          }
        },
        "images": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "srcset": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "assets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "anyOf": [
              {
                "enum": ["entity"]
              },
              {
                "enum": ["resource"]
              },
              {
                "type": "string"
              }
            ],
            "default": "entity"
          },
          "src": {
            "type": "string"
          },
          "components": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "object",
                  "properties": {
                    "scenes": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {
                        "type": "object"
                      }
                    },
                    "nodes": {
                      "type": "object",
                      "properties": {},
                      "additionalProperties": {
                        "type": "object"
                      }
                    }
                  }
                }
              ]
            }
          },
          "gltf-unlit-generator": {
            "type": "object",
            "properties": {
              "skip": {
                "type": "boolean"
              },
              "lighten": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              }
            }
          },
          "FBX2glTF": {
            "type": "object",
            "properties": {
              "args": {
                "type": "array"
              }
            }
          }
        },
        "required": ["name", "src"]
      },
      "minItems": 1
    }
  },
  "required": ["name", "assets", "version"]
}
