~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0
main
44 lines · 1.2 KB Raw History
{
  "lexicon": 1,
  "id": "org.atgrp.internal.checkAddress",
  "defs": {
    "main": {
      "type": "query",
      "description": "Whether an address under this host's domain is free for a new group: no account's handle here, nor kept by a group as its address after it took a handle of its own. Anyone may ask, as anyone may resolve a handle.",
      "parameters": {
        "type": "params",
        "required": [
          "address"
        ],
        "properties": {
          "address": {
            "type": "string",
            "maxLength": 253,
            "description": "One label under this host's domain, as describeServer names it: riders.groups.test."
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "address",
            "available"
          ],
          "properties": {
            "address": {
              "type": "string",
              "maxLength": 253,
              "description": "The address, lowercased."
            },
            "available": {
              "type": "boolean",
              "description": "Whether a new group may take it."
            }
          }
        }
      }
    }
  }
}