{
	"$schema": "http://json-schema.org/draft-07/schema#",
	"$id": "https://developers.wp-image-editor.com/manifest.schema.json",
	"title": "WunderPaint extension manifest",
	"type": "object",
	"required": [ "name", "main" ],
	"additionalProperties": true,
	"properties": {
		"$schema": { "type": "string" },
		"name": {
			"type": "string",
			"minLength": 1,
			"description": "Display name in the Extensions manager."
		},
		"slug": {
			"type": "string",
			"pattern": "^[a-z0-9][a-z0-9_-]*$",
			"description": "Install folder + script handle; defaults to a sanitized name."
		},
		"version": {
			"type": "string",
			"pattern": "^\\d+(\\.\\d+){0,2}$",
			"description": "Package version; busts the asset cache on update."
		},
		"author": { "type": "string" },
		"description": { "type": "string" },
		"homepage": { "type": "string", "format": "uri" },
		"main": {
			"type": "string",
			"description": "Entry script, relative to the package root (no ../)."
		},
		"style": {
			"type": "string",
			"description": "Optional stylesheet, enqueued with the script."
		},
		"requiresApi": {
			"type": "string",
			"pattern": "^\\d+(\\.\\d+){0,2}$",
			"description": "Minimum extension API (window.WPIE.api.version). Packages needing a newer editor are not loaded and the manager explains why."
		},
		"provides": {
			"type": "array",
			"items": {
				"type": "string",
				"examples": [
					"generator",
					"librarySection",
					"templatePack",
					"effect",
					"aiTool",
					"exportFormat",
					"panel",
					"tool",
					"binding"
				]
			},
			"description": "Registration points the package uses; shown in the manager."
		}
	}
}
