{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "When the user was born and the birthday they keep: the date of birth, or only the year when that is all that is known, and the birthday kept every year, which may be on a lunar calendar. It is apart from legal identity so that an age or a birthday can be shared without the legal name and nationality; the date registered on official documents is kept in profile.legalIdentity.",
      "key": "literal:self",
      "record": {
        "properties": {
          "_meta": {
            "ref": "ai.newnal.mydata.defs#recordMeta",
            "type": "ref"
          },
          "data": {
            "closed": true,
            "refs": [
              "#section"
            ],
            "type": "union"
          }
        },
        "required": [
          "data",
          "_meta"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "section": {
      "description": "When the user was born and the birthday they keep: the date of birth, or only the year when that is all that is known, and the birthday kept every year, which may be on a lunar calendar. It is apart from legal identity so that an age or a birthday can be shared without the legal name and nationality; the date registered on official documents is kept in profile.legalIdentity.",
      "properties": {
        "birthDate": {
          "description": "The date of birth.",
          "ref": "ai.newnal.mydata.defs#date",
          "type": "ref"
        },
        "birthYear": {
          "description": "The year of birth, for when the full date of birth is not known or not given. When birthDate is there, it is the year of that date.",
          "maximum": 2200,
          "minimum": 1800,
          "type": "integer"
        },
        "birthday": {
          "description": "The birthday the user keeps every year, which may be on a lunar calendar. When absent, the month and day of birthDate.",
          "ref": "ai.newnal.mydata.defs#yearlyDate",
          "type": "ref"
        }
      },
      "type": "object"
    }
  },
  "id": "ai.newnal.mydata.profileBirth",
  "lexicon": 1
}
