garden.lexicon.avid-antelope-359377.scale
Defines what makes a valid rating value for a scale: the value's shape and measurement level.
Details · record, key tid
| Kind | record |
|---|---|
| Record key | tid |
| Authority | avid-antelope-359377.lexicon.garden |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"interval": {
"properties": {
"max": {
"type": "integer"
},
"maxLabel": {
"description": "Optional label for the maximum value.",
"maxLength": 128,
"type": "string"
},
"maxLabelImage": {
"accept": [
"image/*"
],
"description": "Optional image for the maximum endpoint.",
"maxSize": 1000000,
"type": "blob"
},
"min": {
"type": "integer"
},
"minLabel": {
"description": "Optional label for the minimum value.",
"maxLength": 128,
"type": "string"
},
"minLabelImage": {
"accept": [
"image/*"
],
"description": "Optional image for the minimum endpoint.",
"maxSize": 1000000,
"type": "blob"
},
"unit": {
"maxLength": 64,
"type": "string"
},
"unitsPerWhole": {
"description": "Divide the stored integer by this to get the value in `unit`s. Any positive integer, not just a power of 10. Choose min/max directly in the smallest (or coarsest) legal increment; every integer between min and max is then a valid value, by construction.",
"minimum": 1,
"type": "integer"
}
},
"required": [
"min",
"max",
"unitsPerWhole"
],
"type": "object"
},
"intervalValue": {
"properties": {
"value": {
"type": "integer"
}
},
"required": [
"value"
],
"type": "object"
},
"main": {
"description": "Defines what makes a valid rating value for a scale: the value's shape and measurement level.",
"key": "tid",
"record": {
"properties": {
"code": {
"refs": [
"#nominal",
"#ordinal",
"#interval",
"#ratio"
],
"type": "union"
},
"createdAt": {
"format": "datetime",
"type": "string"
},
"description": {
"maxLength": 1024,
"type": "string"
},
"documentation": {
"description": "Optional URI linking to further documentation about this scale (e.g. methodology, citations).",
"format": "uri",
"maxLength": 1024,
"type": "string"
},
"langs": {
"description": "BCP-47 tag(s) the name/description/option labels in this scale are written in.",
"items": {
"format": "language",
"type": "string"
},
"type": "array"
},
"name": {
"maxLength": 256,
"type": "string"
}
},
"required": [
"name",
"code",
"createdAt"
],
"type": "object"
},
"type": "record"
},
"nominal": {
"properties": {
"options": {
"items": {
"ref": "#nominalOption",
"type": "ref"
},
"type": "array"
}
},
"required": [
"options"
],
"type": "object"
},
"nominalOption": {
"properties": {
"description": {
"maxLength": 256,
"type": "string"
},
"label": {
"maxLength": 128,
"type": "string"
},
"labelImage": {
"accept": [
"image/*"
],
"description": "Optional image for this option.",
"maxSize": 1000000,
"type": "blob"
},
"value": {
"maxLength": 64,
"type": "string"
}
},
"required": [
"label",
"value"
],
"type": "object"
},
"nominalValue": {
"properties": {
"value": {
"maxLength": 64,
"type": "string"
}
},
"required": [
"value"
],
"type": "object"
},
"ordinal": {
"properties": {
"options": {
"items": {
"ref": "#ordinalOption",
"type": "ref"
},
"type": "array"
}
},
"required": [
"options"
],
"type": "object"
},
"ordinalOption": {
"properties": {
"description": {
"maxLength": 256,
"type": "string"
},
"label": {
"maxLength": 128,
"type": "string"
},
"labelImage": {
"accept": [
"image/*"
],
"description": "Optional image for this option.",
"maxSize": 1000000,
"type": "blob"
},
"value": {
"description": "Rank. Leave gaps for future insertions.",
"type": "integer"
}
},
"required": [
"label",
"value"
],
"type": "object"
},
"ordinalValue": {
"properties": {
"value": {
"type": "integer"
}
},
"required": [
"value"
],
"type": "object"
},
"ratio": {
"properties": {
"max": {
"type": "integer"
},
"maxLabel": {
"description": "Optional label for the maximum value.",
"maxLength": 128,
"type": "string"
},
"maxLabelImage": {
"accept": [
"image/*"
],
"description": "Optional image for the maximum endpoint.",
"maxSize": 1000000,
"type": "blob"
},
"min": {
"type": "integer"
},
"minLabel": {
"description": "Optional label for the minimum value (true absence).",
"maxLength": 128,
"type": "string"
},
"minLabelImage": {
"accept": [
"image/*"
],
"description": "Optional image for the minimum endpoint.",
"maxSize": 1000000,
"type": "blob"
},
"unit": {
"maxLength": 64,
"type": "string"
},
"unitsPerWhole": {
"description": "Divide the stored integer by this to get the value in `unit`s. Choose min/max directly in the smallest (or coarsest) legal increment so that every integer between min and max is then a valid value.",
"minimum": 1,
"type": "integer"
}
},
"required": [
"min",
"max",
"unitsPerWhole"
],
"type": "object"
},
"ratioValue": {
"properties": {
"value": {
"type": "integer"
}
},
"required": [
"value"
],
"type": "object"
}
},
"id": "garden.lexicon.avid-antelope-359377.scale",
"lexicon": 1
}