{ "title": "UpdateServiceUserPersonalProfile", "type": "object", "properties": { "@type": { "type": "string" }, "avatar": { "type": "string" }, "nickname": { "type": "string" }, "nameTitle": { "type": "string" }, "firstName": { "type": "string" }, "lastName": { "type": "string" }, "birthDate": { // should allow either YYYY-MM-DD or YYYY-MM (ISO8601 format) "anyOf": [ { "type": "string", "format": "date" // YYYY-MM-DD }, { "type": "string", "pattern": "([12][0-9]{3})-(0[1-9]|1[0-2])" // YYYY-MM } ] }, "religion": { "type": "object", "properties": { "@type": { "type": "string" }, "@id": { "type": "string", "enum": [ "BahaI", "Buddhist", "Christian", "Hindu", "Jain", "Jewish", "Muslim", "Pagan", "Sikh", "Zoroastrian", "Other", "None", "DeclinesToDisclose", "Unknown", ] } }, "required": [ "@type", "@id" ] }, "gender": { "type": "object", "properties": { "@type": { "type": "string" }, "@id": { "type": "string", "enum": [ "Male", "Female", "Agender", "GenderFluid" ] } }, "required": [ "@type", "@id" ] }, "disability": { "type": "object", "properties": { "@type": { "type": "string" }, "@id": { "type": "string", "enum": [ "BehaviourAndEmotional", "Hearing", "ManualDexterity", "MemoryOrAbilityToConcentrateLearnOrUnderstandLearningDisability", "MobilityAndGrossMotor", "PerceptionOfPhysicalDanger", "PersonalSelfCareAndContinence", "ProgressiveConditionsAndPhysicalHealthSuchAsHivCancerMultipleSclerosisFitsEtc", "Sight", "Speech", "Other", "NoDisability", "NotStated", ] } }, "required": [ "@type", "@id" ] }, "ethnicity": { "type": "object", "properties": { "@type": { "type": "string" }, "@id": { "type": "string", "enum": [ "WhiteAndBlackCaribbean", "WhiteAndBlackAfrican", "WhiteAndAsian", "AnyOtherMixedBackground", "British", "Irish", "AnyOtherWhiteBackground", "Indian", "Pakistani", "Bangladeshi", "AnyOtherAsianBackground", "Chinese", "AnyOtherEthnicGroup", "NotStated", "Caribbean", "African", "AnyOtherBlackBackground", ] } }, "required": [ "@type", "@id" ] }, "telephoneNumber": { "pattern": "^\+[1-9]\d{1,14}$", "type": "string" }, "fullAddress": { "type": "string" }, "emailAddress": { "type": "string", "format": "email" }, "contacts": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string" }, "school": { "type": "string" }, "role": { "type": "string" }, "firstName": { "type": "string" }, "lastName": { "type": "string" }, "telephoneNumber": { "type": "string", "pattern": "^\+[1-9]\d{1,14}$" } }, "required": [ "@type" ] } }, "description": { "type": "string" }, "heardAboutFrom": { "type": "string" }, "tags": { type: "array", uniqueItems: true, additionalProperties: false, minItems: 1, items: { anyOf: [ { type: "object", required: ["@type", "@id"], additionalProperties: false, properties: { "@type": { type: "string", enum: [ "Vulnerability", ], }, "@id": { type: "string", enum: [ "Send", "SexualOrientation", "Pregnancy", "ReligionFaith", "ArrangedMarriage", "VulnerablyAccommodated", "Neet", "YoungCarer", "ChildLookedAfter", "YoungOffender", "SubstanceMisuse", "VictimOfCrime", "EnglishAsSecondLanguage", ] } } } ] } } }, "required": [ "@type", "birthDate", "nickname" ] }