{
    "HypertyCommunicationDataObjectInstance": {
        "properties": {
            "url": {
                "type": "string"
            }
        },
        "required": [
            "url"
        ],
        "type": "object"
    },
    "HypertyContextDataObjectInstance": {
        "properties": {
            "url": {
                "type": "string"
            }
        },
        "required": [
            "url"
        ],
        "type": "object"
    },
    "_comment": "This Spec is for Phase 1!! Most updated version is at https://github.com/reTHINK-project/specs/tree/master/schemas",
    "anyOf": [
        {
            "$ref": "#/HypertyContextDataObjectInstance"
        },
        {
            "$ref": "#/HypertyCommunicationDataObjectInstance"
        }
    ],
    "properties": {
        "description": {
            "type": "string"
        },
        "name": {
            "type": "string"
        },
        "owner": {
            "type": "string"
        },
        "resources": {
            "items": {
                "enum": [
                    "chat",
                    "audio",
                    "video",
                    "av",
                    "screen",
                    "file",
                    "midi",
                    "activity_context",
                    "availability_context",
                    "location_context",
                    "heart_rate_contexst",
                    "user_steps_context",
                    "battery_context",
                    "sleep_context",
                    "light_context",
                    "humidity_context",
                    "power",
                    "user_activity_context",
                    "user_communication_context"
                ]
            },
            "type": "array"
        },
        "tags": {
            "items": {
                "type": "string"
            },
            "type": "array"
        }
    },
    "required": [
        "owner",
        "resources",
        "name"
    ],
    "type": "object"
}