{ "lexicon": 1, "id": "ing.dasl.masl", "description": "Lexicon for DASL (https://dasl.ing/) types used on AT, notably for Web Tiles.", "defs": { "masl": { "type": "object", "description": "MASL metadata as defined in https://dasl.ing/masl.html", "properties": { "name": { "type": "string", "description": "The name for the tile, can be a title or app name", "maxLength": 1000, "maxGraphemes": 100 }, "description": { "type": "string", "description": "Short overview of the content", "maxLength": 3000, "maxGraphemes": 300 }, "categories": { "type": "array", "description": "Tags categorising the tile", "items": { "type": "string" } }, "background_color": { "type": "string", "description": "A colour for the background of the tile" }, "icons": { "type": "array", "description": "Icons for the tile", "items": { "type": "object", "required": ["src"], "properties": { "src": { "type": "string" }, "sizes": { "type": "string" }, "purpose": { "type": "string" } } } }, "screenshots": { "type": "array", "description": "Screenshots, can be used for banner or card images", "items": { "type": "object", "required": ["src"], "properties": { "src": { "type": "string" }, "sizes": { "type": "string" }, "label": { "type": "string" } } } }, "sizing": { "type": "object", "description": "Requesting sizing properties for the content", "properties": { "width": { "type": "integer", "mininum": 1 }, "height": { "type": "integer", "mininum": 1 } }, "required": ["width", "height"] }, "resources": { "type": "unknown", "description": "A mapping of path to object with a CID src and HTTP headers" }, "short_name": { "type": "string", "description": "A name, in case the basic name cannot fit" }, "theme_color": { "type": "string", "description": "Theme colour" }, "prev": { "type": "cid-link", "description": "In case there are multiple versions of this tile, this is the CID of the previous one" }, "version": { "type": "integer", "description": "The CAR version — avoid using this", "const": 1 }, "roots": { "type": "array", "description": "The CAR roots — avoid using this", "items": { "type": "cid-link" } } }, "required": ["name", "resources"] }, "main": { "type": "record", "description": "A tile, instantiating MASL metadata into a record", "key": "tid", "record": { "type": "object", "required": ["cid", "tile", "createdAt"], "properties": { "cid": { "type": "string", "description": "The DRISL CID of the MASL for the tile", "format": "cid" }, "tile": { "type": "ref", "description": "The MASL content", "ref": "ing.dasl.masl#masl" }, "createdAt": { "type": "string", "description": "Timestamp", "format": "datetime" } } } } } }