garden.lexicon.dazzling-boarfish.rating.scale

tynanpurdy.com

{
  "defs": {
    "interval": {
      "properties": {
        "max": {
          "type": "integer"
        },
        "maxLabel": {
          "description": "Optional label for the maximum value.",
          "maxLength": 128,
          "type": "string"
        },
        "maxLabelImage": {
          "description": "Optional image for the maximum endpoint (blob reference).",
          "properties": {
            "mimeType": {
              "type": "string"
            },
            "ref": {
              "type": "cid-link"
            },
            "size": {
              "type": "integer"
            }
          },
          "type": "object"
        },
        "min": {
          "type": "integer"
        },
        "minLabel": {
          "description": "Optional label for the minimum value.",
          "maxLength": 128,
          "type": "string"
        },
        "minLabelImage": {
          "description": "Optional image for the minimum endpoint (blob reference).",
          "properties": {
            "mimeType": {
              "type": "string"
            },
            "ref": {
              "type": "cid-link"
            },
            "size": {
              "type": "integer"
            }
          },
          "type": "object"
        },
        "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": {
      "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"
            },
            "maxItems": 3,
            "type": "array"
          },
          "name": {
            "maxLength": 256,
            "type": "string"
          }
        },
        "required": [
          "name",
          "code"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "nominal": {
      "properties": {
        "options": {
          "items": {
            "ref": "#nominalOption",
            "type": "ref"
          },
          "maxItems": 100,
          "type": "array"
        }
      },
      "required": [
        "options"
      ],
      "type": "object"
    },
    "nominalOption": {
      "properties": {
        "description": {
          "maxLength": 256,
          "type": "string"
        },
        "label": {
          "maxLength": 128,
          "type": "string"
        },
        "labelImage": {
          "description": "Optional image for this option (blob reference).",
          "properties": {
            "mimeType": {
              "type": "string"
            },
            "ref": {
              "type": "cid-link"
            },
            "size": {
              "type": "integer"
            }
          },
          "type": "object"
        },
        "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"
          },
          "maxItems": 100,
          "type": "array"
        }
      },
      "required": [
        "options"
      ],
      "type": "object"
    },
    "ordinalOption": {
      "properties": {
        "description": {
          "maxLength": 256,
          "type": "string"
        },
        "label": {
          "maxLength": 128,
          "type": "string"
        },
        "labelImage": {
          "description": "Optional image for this option (blob reference).",
          "properties": {
            "mimeType": {
              "type": "string"
            },
            "ref": {
              "type": "cid-link"
            },
            "size": {
              "type": "integer"
            }
          },
          "type": "object"
        },
        "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": {
          "description": "Optional image for the maximum endpoint (blob reference).",
          "properties": {
            "mimeType": {
              "type": "string"
            },
            "ref": {
              "type": "cid-link"
            },
            "size": {
              "type": "integer"
            }
          },
          "type": "object"
        },
        "min": {
          "type": "integer"
        },
        "minLabel": {
          "description": "Optional label for the minimum value (true absence).",
          "maxLength": 128,
          "type": "string"
        },
        "minLabelImage": {
          "description": "Optional image for the minimum endpoint (blob reference).",
          "properties": {
            "mimeType": {
              "type": "string"
            },
            "ref": {
              "type": "cid-link"
            },
            "size": {
              "type": "integer"
            }
          },
          "type": "object"
        },
        "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"
    }
  },
  "description": "Defines what makes a valid rating value for a scale — the value's shape and measurement level.",
  "id": "garden.lexicon.dazzling-boarfish.rating.scale",
  "lexicon": 1
}

Validate Record

Validate a record against garden.lexicon.dazzling-boarfish.rating.scale

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:6ayddqghxhciedbaofoxkcbs
CID
bafyreidi3rcz2vkskr277ovp42jt2e4k3l3qy57qnjjspm3q4s5upgxheq
Indexed At
2026-09-29 22:20 UTC
AT-URI
at://did:plc:6ayddqghxhciedbaofoxkcbs/com.atproto.lexicon.schema/garden.lexicon.dazzling-boarfish.rating.scale

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

Lexicon Garden

@