{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Lanlet Function Package 1.0 manifest",
  "description": "Fields accepted by the Host. Also run the CLI check for canonical version, portable archive paths, byte limits, entry presence and complete ZIP validation.",
  "type": "object",
  "required": ["id", "name", "version", "entry"],
  "properties": {
    "id": {"type": "string", "maxLength": 96, "pattern": "^[a-z0-9]+(?:[.-][a-z0-9]+)*$"},
    "name": {"type": "string", "minLength": 1, "maxLength": 160, "pattern": "\\S"},
    "version": {"type": "string", "maxLength": 64, "description": "Canonical semantic version, e.g. 1.0.0."},
    "entry": {"type": "string", "pattern": "\\.[Hh][Tt][Mm][Ll]?$", "description": "A portable relative path to an HTML file in the ZIP."}
  }
}
