{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/chamaleon-template/latest.json",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/gerardorodriguezdev/chamaleon/refs/heads/master/schemas/template-schema.json",
    "sourceSha256": "2826302701df2ee1bfa25eb57753265751033557da5fa3a519ed00249be758a4",
    "fileMatch": [
      "template.chamaleon.json"
    ],
    "parsers": [
      "json"
    ]
  },
  "type": "object",
  "properties": {
    "supportedPlatforms": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "android",
          "wasm",
          "js",
          "jvm",
          "native"
        ]
      },
      "minItems": 1,
      "uniqueItems": true
    },
    "propertyDefinitions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          },
          "propertyType": {
            "type": "string",
            "enum": [
              "String",
              "Boolean"
            ]
          },
          "nullable": {
            "type": "boolean"
          },
          "supportedPlatforms": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "android",
                "wasm",
                "js",
                "jvm",
                "native"
              ]
            },
            "uniqueItems": true
          }
        },
        "required": [
          "name",
          "propertyType"
        ]
      },
      "minItems": 1,
      "uniqueItems": true
    }
  },
  "required": [
    "supportedPlatforms",
    "propertyDefinitions"
  ]
}
