Salutations
xeebo salutation schema
JSON schema
  1. {
  2.     "$schema": "http://json-schema.org/draft-04/schema",
  3.     "id": "http://api.xeebo.com/schema/xeebo-salutation-schema-v1.0.0.json",
  4.     "title": "Salutations",
  5.     "description": "xeebo salutation schema",
  6.     "type": "object",
  7.     "definitions": {
  8.         "versionType": {
  9.             "title": "Schema Version",
  10.             "description": "Schema version string",
  11.             "type": "string",
  12.             "pattern": "^[0-9]\\.[0-9]\\.[0-9]$"
  13.         },
  14.         "translationType": {
  15.             "title": "Translation",
  16.             "description": "Translation label using iso-639-alpha-2 language locale as key",
  17.             "type": "object"
  18.         },
  19.         "dataType": {
  20.             "title": "Salutation Data",
  21.             "description": "Salutation data structure",
  22.             "type": [
  23.                 "object",
  24.                 "null"
  25.             ],
  26.             "properties": {
  27.                 "null": {
  28.                     "$ref": "#/definitions/translationType"
  29.                 },
  30.                 "F": {
  31.                     "$ref": "#/definitions/translationType"
  32.                 },
  33.                 "M": {
  34.                     "$ref": "#/definitions/translationType"
  35.                 }
  36.             }
  37.         }
  38.     },
  39.     "properties": {
  40.         "version": {
  41.             "$ref": "#/definitions/versionType"
  42.         },
  43.         "data": {
  44.             "$ref": "#/definitions/dataType"
  45.         }
  46.     },
  47.     "additionalProperties": false
  48. }
JSON schema data description
Path/Attribute Title Description Required
version Schema Version Schema version string optional
data Salutation Data Salutation data structure optional
  1. {
  2.     "version": "1.0.0",
  3.     "data": {
  4.         "M": {
  5.             "fr": "Mr.",
  6.             "de": "Herr",
  7.             "en": "Mr.",
  8.             "it": "Mr."
  9.         },
  10.         "null": {
  11.             "fr": "Other",
  12.             "de": "Andere",
  13.             "en": "Other",
  14.             "it": "Other"
  15.         },
  16.         "F": {
  17.             "fr": "Mrs.",
  18.             "de": "Frau",
  19.             "en": "Mrs.",
  20.             "it": "Mrs."
  21.         }
  22.     }
  23. }