Monorepo for Tangled
Something went wrong. Try again.
JSON
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990{ "lexicon": 1, "id": "sh.tangled.label.definition", "needsCbor": true, "needsType": true, "defs": { "main": { "type": "record", "key": "any", "record": { "type": "object", "required": [ "name", "valueType", "scope", "createdAt" ], "properties": { "name": { "type": "string", "description": "The display name of this label.", "minGraphemes": 1, "maxGraphemes": 40 }, "valueType": { "type": "ref", "ref": "#valueType", "description": "The type definition of this label. Appviews may allow sorting for certain types." }, "scope": { "type": "array", "description": "The areas of the repo this label may apply to, eg.: sh.tangled.repo.issue. Appviews may choose to respect this.", "items": { "type": "string", "format": "nsid" } }, "color": { "type": "string", "description": "The hex value for the background color for the label. Appviews may choose to respect this." }, "createdAt": { "type": "string", "format": "datetime" }, "multiple": { "type": "boolean", "description": "Whether this label can be repeated for a given entity, eg.: [reviewer:foo, reviewer:bar]" } } } }, "valueType": { "type": "object", "required": [ "type", "format" ], "properties": { "type": { "type": "string", "enum": [ "null", "boolean", "integer", "string" ], "description": "The concrete type of this label's value." }, "format": { "type": "string", "enum": [ "any", "did", "nsid" ], "description": "An optional constraint that can be applied on string concrete types." }, "enum": { "type": "array", "description": "Closed set of values that this label can take.", "items": { "type": "string" } } } } }}