···11+{22+ "lexicon": 1,33+ "id": "sh.tangled.label.definition",44+ "needsCbor": true,55+ "needsType": true,66+ "defs": {77+ "main": {88+ "type": "record",99+ "key": "any",1010+ "record": {1111+ "type": "object",1212+ "required": [1313+ "name",1414+ "valueType",1515+ "scope",1616+ "createdAt"1717+ ],1818+ "properties": {1919+ "name": {2020+ "type": "string",2121+ "description": "The display name of this label.",2222+ "minGraphemes": 1,2323+ "maxGraphemes": 402424+ },2525+ "valueType": {2626+ "type": "ref",2727+ "ref": "#valueType",2828+ "description": "The type definition of this label. Appviews may allow sorting for certain types."2929+ },3030+ "scope": {3131+ "type": "array",3232+ "description": "The areas of the repo this label may apply to, eg.: sh.tangled.repo.issue. Appviews may choose to respect this.",3333+ "items": {3434+ "type": "string",3535+ "format": "nsid"3636+ }3737+ },3838+ "color": {3939+ "type": "string",4040+ "description": "The hex value for the background color for the label. Appviews may choose to respect this."4141+ },4242+ "createdAt": {4343+ "type": "string",4444+ "format": "datetime"4545+ },4646+ "multiple": {4747+ "type": "boolean",4848+ "description": "Whether this label can be repeated for a given entity, eg.: [reviewer:foo, reviewer:bar]"4949+ }5050+ }5151+ }5252+ },5353+ "valueType": {5454+ "type": "object",5555+ "required": [5656+ "type",5757+ "format"5858+ ],5959+ "properties": {6060+ "type": {6161+ "type": "string",6262+ "enum": [6363+ "null",6464+ "boolean",6565+ "integer",6666+ "string"6767+ ],6868+ "description": "The concrete type of this label's value."6969+ },7070+ "format": {7171+ "type": "string",7272+ "enum": [7373+ "any",7474+ "did",7575+ "nsid"7676+ ],7777+ "description": "An optional constraint that can be applied on string concrete types."7878+ },7979+ "enum": {8080+ "type": "array",8181+ "description": "Closed set of values that this label can take.",8282+ "items": {8383+ "type": "string"8484+ }8585+ }8686+ }8787+ }8888+ }8989+}