{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api-evangelist.github.io/weaviate/json-schema/weaviate-user-own-info-schema.json",
  "title": "UserOwnInfo",
  "description": "Weaviate UserOwnInfo schema",
  "type": "object",
  "properties": {
    "groups": {
      "type": "array",
      "description": "The groups associated with the user.",
      "items": {
        "type": "string"
      }
    },
    "roles": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Role"
      }
    },
    "username": {
      "type": "string",
      "description": "The name (ID) of the user."
    }
  },
  "required": [
    "username"
  ]
}