~ knotless Search/
↑↓ move↵ open⇧↵ all results

grain.social/grain

photography-focused photo sharing platform

grain.social
1 collaborator
0
2
45 lines · 1.2 KB Raw History
{
  "lexicon": 1,
  "id": "dev.hatk.describeLabels",
  "defs": {
    "main": {
      "type": "query",
      "description": "List available label definitions.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "properties": {
            "definitions": {
              "type": "array",
              "items": { "type": "ref", "ref": "#labelDefinition" }
            }
          }
        }
      }
    },
    "labelDefinition": {
      "type": "object",
      "required": ["identifier", "severity", "blurs", "defaultSetting"],
      "properties": {
        "identifier": { "type": "string" },
        "severity": { "type": "string" },
        "blurs": { "type": "string" },
        "defaultSetting": { "type": "string" },
        "locales": {
          "type": "array",
          "items": { "type": "ref", "ref": "#labelLocale" }
        }
      }
    },
    "labelLocale": {
      "type": "object",
      "required": ["lang", "name", "description"],
      "properties": {
        "lang": { "type": "string" },
        "name": { "type": "string" },
        "description": { "type": "string" }
      }
    }
  }
}