Skip to content

Commit

Permalink
Adding better descriptions for preferredLanguage, emailFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
aarjain committed Apr 20, 2018
1 parent d76a44d commit 1a349e1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions schemas/context/profile.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,10 @@
"xdm:preferredLanguage": {
"title": "Preferred Language",
"type": "string",
"pattern":
"^(((([A-Za-z]{2,3}(-([A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-([A-Za-z]{4}))?(-([A-Za-z]{2}|[0-9]{3}))?(-([A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-([0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(x(-[A-Za-z0-9]{1,8})+))?)|(x(-[A-Za-z0-9]{1,8})+)|((en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang)))$",
"description":
"Describes the preferred system of communication used by the profile. Language codes are expressed in BCP-47 format."
"Describes the preferred system of communication used by the profile. Language codes are expressed in BCP 47 format, for example `en-GB`."
},
"xdm:timeZone": {
"title": "Time Zone",
Expand All @@ -112,10 +114,10 @@
"title": "Email Format",
"type": "string",
"description":
"Email format relevant to the profile. This can be HTML/Plain Text",
"Email format preferred by the profile. This can be rich text/plain text",
"meta:enum": {
"html": "HTML",
"plaintext": "Plain Text"
"html": "Rich text",
"plaintext": "Plain text"
}
},
"xdm:geoUnitID": {
Expand Down

0 comments on commit 1a349e1

Please sign in to comment.