Something went wrong. Try again.
DASL — Data-Addressed Structures & Links — is a small set of simple, standard primitives for working with content-addressed, linked data. If forked from dasl.ing/dasl.ing
Something went wrong. Try again.
dasl.ing tiles-lexicon.json
3.8 kB · 130 lines
JSON
at bytes-bits
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131{ "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" } } } } }}