{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The cultural identity and the family and cultural roots the user states for themselves. Nationality 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": "The cultural identity and the family and cultural roots the user states for themselves. Nationality is kept in profile.legalIdentity.",
      "properties": {
        "culturalIdentity": {
          "description": "The cultural identity the user describes.",
          "maxGraphemes": 3000,
          "maxLength": 30000,
          "type": "string"
        },
        "heritage": {
          "description": "List of the family and cultural roots or heritage.",
          "items": {
            "description": "One item of the list of the family and cultural roots or heritage.",
            "maxGraphemes": 256,
            "maxLength": 2560,
            "type": "string"
          },
          "maxLength": 100,
          "type": "array"
        }
      },
      "type": "object"
    }
  },
  "id": "ai.newnal.mydata.profileHeritage",
  "lexicon": 1
}
