{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://fl450.shamsai.app/sdk/fl450-addon.schema.json",
  "title": "FL450 add-on manifest (fl450-addon.json)",
  "type": "object",
  "required": ["id", "name", "version", "kind"],
  "properties": {
    "id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9._-]{2,63}$", "description": "Unique id, e.g. com.yourstudio.a321xlr. Also the install folder name." },
    "name": { "type": "string", "maxLength": 80 },
    "version": { "type": "string", "pattern": "^\\d+\\.\\d+\\.\\d+", "description": "Semantic version of your add-on." },
    "kind": { "enum": ["aircraft", "scenery", "utility"] },
    "entry": { "type": "string", "default": "main.js", "description": "ES module inside the add-on folder; its default export is called with the FL450 API." },
    "minSimVersion": { "type": "string", "description": "Lowest FL450 version it runs on, e.g. 1.11.0." },
    "author": { "type": "string" },
    "description": { "type": "string" },
    "listing": { "type": "string", "description": "Slug of your listing on fl450.shamsai.app/addons — lets the simulator show it as installed." },
    "homepage": { "type": "string", "format": "uri" },
    "license": {
      "type": "object",
      "properties": { "verifyUrl": { "type": "string", "pattern": "^https://", "description": "Your licence server. FL450 POSTs {addon, version, key, machine, sim} and expects {valid: true}." } }
    }
  }
}
