{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "OSLC 3.0 Compact JSON",
    "type": "object",
    "properties": {
        "title": {
            "id": "title",
            "type": "string"
        },
        "shortTitle": {
            "id": "shortTitle",
            "type": "string"
        },
        "icon": {
            "id": "icon",
            "type": "string"
        },
        "iconTitle": {
            "id": "iconTitle",
            "type": "string"
        },
        "iconAltLabel": {
            "id": "iconAltLabel",
            "type": "string"
        },
        "largePreview": {
            "id": "largePreview",
            "type": "object",
            "properties": {
                "document": {
                    "id": "document",
                    "type": "string"
                },
                "hintHeight": {
                    "id": "hintHeight",
                    "type": "string",
                    "pattern": "^[0-9]+(\\.[0-9]+)?(em|ex|in|cm|mm|pt|pc|px)$"
                },
                "hintWidth": {
                    "id": "hintWidth",
                    "type": "string",
                    "pattern": "^[0-9]+(\\.[0-9]+)?(em|ex|in|cm|mm|pt|pc|px)$"
                }
            },
            "required": [
                "document"
            ]
        },
        "smallPreview": {
            "id": "smallPreview",
            "type": "object",
            "properties": {
                "document": {
                    "id": "document",
                    "type": "string"
                },
                "hintHeight": {
                    "id": "hintHeight",
                    "type": "string",
                    "pattern": "^[0-9]+(\\.[0-9]+)?(em|ex|in|cm|mm|pt|pc|px)$"
                },
                "hintWidth": {
                    "id": "hintWidth",
                    "type": "string",
                    "pattern": "^[0-9]+(\\.[0-9]+)?(em|ex|in|cm|mm|pt|pc|px)$"
                }
            },
            "required": [
                "document"
            ]
        }
    }
}
