Douglass.network Schemas

User json-table

douglass.network/user

Record of a user or comunity registered on a douglass server.

{
  "id": "douglass.network/user",
  "title": "User",
  "description": "Record of a user or comunity registered on a douglass server.",
  "type": "json-table",
  "definition": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "required": [
      "username",
      "dbUrl",
      "joinDate"
    ],
    "properties": {
      "username": {
        "type": "string",
        "pattern": "^([a-zA-Z][a-zA-Z0-9-]{1,62}[a-zA-Z0-9])$"
      },
      "type": {
        "type": "string",
        "description": "Current values: 'citizen' or 'community'"
      },
      "dbUrl": {
        "type": "string",
        "pattern": "^hyper://([a-f0-9]{64})/$"
      },
      "joinDate": {
        "type": "string",
        "format": "date-time"
      }
    }
  }
}

Schemas