{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "any",
      "record": {
        "properties": {
          "authority": {
            "format": "did",
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "name": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string"
          },
          "owner": {
            "ref": "#owner",
            "type": "ref"
          },
          "realmId": {
            "maxLength": 36,
            "minLength": 36,
            "type": "string"
          },
          "repositoryId": {
            "maxLength": 36,
            "minLength": 36,
            "type": "string"
          },
          "visibility": {
            "enum": [
              "public",
              "internal",
              "private"
            ],
            "type": "string"
          }
        },
        "required": [
          "authority",
          "realmId",
          "repositoryId",
          "name",
          "owner",
          "visibility",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "owner": {
      "properties": {
        "id": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "kind": {
          "enum": [
            "user",
            "organization"
          ],
          "type": "string"
        }
      },
      "required": [
        "kind",
        "id"
      ],
      "type": "object"
    }
  },
  "id": "dev.gitosphere.repository",
  "lexicon": 1
}
