Publication categories
xeebo job publication categories schema
JSON schema
{
    "$schema": "http://json-schema.org/draft-04/schema", 
    "id": "http://api.xeebo.com/schema/xeebo-categories-schema-v1.0.0.json", 
    "title": "Publication categories", 
    "description": "xeebo job publication categories schema", 
    "type": "object", 
    "definitions": {
        "versionType": {
            "title": "Schema Version", 
            "description": "Schema version string", 
            "type": "string", 
            "pattern": "^[0-9]\\.[0-9]\\.[0-9]$"
        }, 
        "localeType": {
            "title": "Translation", 
            "description": "Translation label using iso-639-alpha-2 language locale as key", 
            "type": "string"
        }, 
        "localesType": {
            "title": "Translations", 
            "description": "The translation locales", 
            "type": "object", 
            "patternProperties": {
                "^[a-z]{2}$": {
                    "$ref": "#/definitions/localeType"
                }
            }, 
            "additionalProperties": false
        }, 
        "subCategoryType": {
            "title": "Sub Category", 
            "description": "Sub category data including translations", 
            "type": "object", 
            "patternProperties": {
                "^[a-z]{4}$": {
                    "title": "Translations", 
                    "description": "The translation locales", 
                    "$ref": "#/definitions/localesType"
                }
            }
        }, 
        "categoryType": {
            "title": "Category", 
            "description": "Job category including tranlsations", 
            "type": "object", 
            "properties": {
                "data": {
                    "title": "Sub Category", 
                    "description": "Sub category data including translations", 
                    "$ref": "#/definitions/subCategoryType"
                }, 
                "locales": {
                    "title": "Sub category translations", 
                    "description": "The sub category translation locales", 
                    "$ref": "#/definitions/localesType"
                }
            }, 
            "additionalProperties": false
        }, 
        "dataType": {
            "title": "Category Data", 
            "description": "Category data structure", 
            "patternProperties": {
                "^[0-9]{2}$": {
                    "$ref": "#/definitions/categoryType"
                }
            }
        }
    }, 
    "properties": {
        "version": {
            "$ref": "#/definitions/versionType"
        }, 
        "data": {
            "$ref": "#/definitions/dataType"
        }
    }, 
    "additionalProperties": false
}
JSON schema data description
Path/Attribute Title Description Required
version Schema Version Schema version string optional
data Category Data Category data structure optional
data.
^[0-9]{2}$
Category Job category including tranlsations optional
data.^[0-9]{2}$.
data
Sub Category Sub category data including translations optional
data.^[0-9]{2}$.
locales
Sub category translations The sub category translation locales optional
data.^[0-9]{2}$.locales.
^[a-z]{2}$
Translation Translation label using iso-639-alpha-2 language locale as key optional