{
    "Action": {
        "properties": {
            "description": {
                "type": "string"
            },
            "id": {
                "type": "string"
            },
            "reporter": {
                "type": "string"
            },
            "schema": {
                "type": "string"
            },
            "tag": {
                "type": "string"
            },
            "time": {
                "format": "date-time",
                "type": "string"
            },
            "type": {
                "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"
                ]
            },
            "unit": {
                "enum": [
                    "meter",
                    "gram",
                    "second",
                    "ampere",
                    "kelvin",
                    "candela",
                    "mole",
                    "hertz",
                    "radian",
                    "steradian",
                    "newton",
                    "pascal",
                    "joule",
                    "watt",
                    "coulomb",
                    "volt",
                    "farad",
                    "ohm",
                    "siemens",
                    "weber",
                    "tesla",
                    "henry",
                    "degrees_celsius",
                    "lumen",
                    "lux",
                    "becquerel",
                    "gray",
                    "sievert",
                    "katal",
                    "ph_acidity",
                    "value_of_a_switch",
                    "counter_value",
                    "relative_humidity",
                    "area",
                    "volume_in_liters",
                    "velocity",
                    "acceleration",
                    "flow_rate_in_liters_per_second",
                    "irradiance",
                    "luminance",
                    "bel_sound_pressure_level",
                    "bits_per_second",
                    "degrees_latitude",
                    "degrees_longitude",
                    "remaining_battery_energy_level_in_percents",
                    "remaining_battery_energy_level_in_seconds",
                    "heart_rate_in_beats_per_minute",
                    "cumulative_number_of_heart_beats",
                    "steps",
                    "pres",
                    "act",
                    "comm"
                ]
            },
            "url": {
                "type": "string"
            },
            "values": {
                "items": {
                    "$ref": "#/ContextValue"
                },
                "type": "array"
            },
            "version": {
                "type": "integer"
            }
        },
        "required": [
            "url",
            "reporter",
            "schema",
            "id",
            "type",
            "values"
        ],
        "stereotype": "syncobjectchild",
        "type": "object"
    },
    "Actions": {
        "properties": {
            "listener": {
                "constant": "<actions>"
            },
            "observerPermissions": {
                "constant": "write"
            },
            "parent": {
                "constant": "context"
            },
            "type": {
                "constant": "<Action>"
            }
        },
        "required": [
            "parent",
            "listener",
            "type",
            "observerPermissions"
        ],
        "stereotype": "children",
        "type": "object"
    },
    "ContextValue": {
        "properties": {
            "expires": {
                "format": "date-time",
                "type": "string"
            },
            "name": {
                "enum": [
                    "meter",
                    "gram",
                    "second",
                    "ampere",
                    "kelvin",
                    "candela",
                    "mole",
                    "hertz",
                    "radian",
                    "steradian",
                    "newton",
                    "pascal",
                    "joule",
                    "watt",
                    "coulomb",
                    "volt",
                    "farad",
                    "ohm",
                    "siemens",
                    "weber",
                    "tesla",
                    "henry",
                    "degrees_celsius",
                    "lumen",
                    "lux",
                    "becquerel",
                    "gray",
                    "sievert",
                    "katal",
                    "ph_acidity",
                    "value_of_a_switch",
                    "counter_value",
                    "relative_humidity",
                    "area",
                    "volume_in_liters",
                    "velocity",
                    "acceleration",
                    "flow_rate_in_liters_per_second",
                    "irradiance",
                    "luminance",
                    "bel_sound_pressure_level",
                    "bits_per_second",
                    "degrees_latitude",
                    "degrees_longitude",
                    "remaining_battery_energy_level_in_percents",
                    "remaining_battery_energy_level_in_seconds",
                    "heart_rate_in_beats_per_minute",
                    "cumulative_number_of_heart_beats",
                    "steps",
                    "availability",
                    "user_activity",
                    "user_communication"
                ]
            },
            "sum": {
                "enum": [
                    "meter",
                    "gram",
                    "second",
                    "ampere",
                    "kelvin",
                    "candela",
                    "mole",
                    "hertz",
                    "radian",
                    "steradian",
                    "newton",
                    "pascal",
                    "joule",
                    "watt",
                    "coulomb",
                    "volt",
                    "farad",
                    "ohm",
                    "siemens",
                    "weber",
                    "tesla",
                    "henry",
                    "degrees_celsius",
                    "lumen",
                    "lux",
                    "becquerel",
                    "gray",
                    "sievert",
                    "katal",
                    "ph_acidity",
                    "value_of_a_switch",
                    "counter_value",
                    "relative_humidity",
                    "area",
                    "volume_in_liters",
                    "velocity",
                    "acceleration",
                    "flow_rate_in_liters_per_second",
                    "irradiance",
                    "luminance",
                    "bel_sound_pressure_level",
                    "bits_per_second",
                    "degrees_latitude",
                    "degrees_longitude",
                    "remaining_battery_energy_level_in_percents",
                    "remaining_battery_energy_level_in_seconds",
                    "heart_rate_in_beats_per_minute",
                    "cumulative_number_of_heart_beats",
                    "steps",
                    "pres",
                    "act",
                    "comm"
                ]
            },
            "time": {
                "format": "date-time",
                "type": "string"
            },
            "type": {
                "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"
                ]
            },
            "unit": {
                "enum": [
                    "meter",
                    "gram",
                    "second",
                    "ampere",
                    "kelvin",
                    "candela",
                    "mole",
                    "hertz",
                    "radian",
                    "steradian",
                    "newton",
                    "pascal",
                    "joule",
                    "watt",
                    "coulomb",
                    "volt",
                    "farad",
                    "ohm",
                    "siemens",
                    "weber",
                    "tesla",
                    "henry",
                    "degrees_celsius",
                    "lumen",
                    "lux",
                    "becquerel",
                    "gray",
                    "sievert",
                    "katal",
                    "ph_acidity",
                    "value_of_a_switch",
                    "counter_value",
                    "relative_humidity",
                    "area",
                    "volume_in_liters",
                    "velocity",
                    "acceleration",
                    "flow_rate_in_liters_per_second",
                    "irradiance",
                    "luminance",
                    "bel_sound_pressure_level",
                    "bits_per_second",
                    "degrees_latitude",
                    "degrees_longitude",
                    "remaining_battery_energy_level_in_percents",
                    "remaining_battery_energy_level_in_seconds",
                    "heart_rate_in_beats_per_minute",
                    "cumulative_number_of_heart_beats",
                    "steps",
                    "pres",
                    "act",
                    "comm"
                ]
            },
            "updateTime": {
                "format": "date-time",
                "type": "string"
            },
            "value": {
                "type": "object"
            }
        },
        "required": [
            "name",
            "value"
        ],
        "type": "object"
    },
    "_comment": "This Spec is for Phase 1!! Most updated version is at https://github.com/reTHINK-project/specs/tree/master/schemas",
    "properties": {
        "address": {
            "type": "string"
        },
        "childUrls": {
            "items": {
                "type": "string"
            },
            "type": "array"
        },
        "children": {
            "items": {
                "type": "string"
            },
            "type": "array"
        },
        "description": {
            "type": "string"
        },
        "id": {
            "type": "string"
        },
        "name": {
            "type": "string"
        },
        "reporter": {
            "type": "string"
        },
        "schema": {
            "type": "string"
        },
        "scheme": {
            "constant": "context"
        },
        "tag": {
            "type": "string"
        },
        "time": {
            "format": "date-time",
            "type": "string"
        },
        "type": {
            "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"
            ]
        },
        "unit": {
            "enum": [
                "meter",
                "gram",
                "second",
                "ampere",
                "kelvin",
                "candela",
                "mole",
                "hertz",
                "radian",
                "steradian",
                "newton",
                "pascal",
                "joule",
                "watt",
                "coulomb",
                "volt",
                "farad",
                "ohm",
                "siemens",
                "weber",
                "tesla",
                "henry",
                "degrees_celsius",
                "lumen",
                "lux",
                "becquerel",
                "gray",
                "sievert",
                "katal",
                "ph_acidity",
                "value_of_a_switch",
                "counter_value",
                "relative_humidity",
                "area",
                "volume_in_liters",
                "velocity",
                "acceleration",
                "flow_rate_in_liters_per_second",
                "irradiance",
                "luminance",
                "bel_sound_pressure_level",
                "bits_per_second",
                "degrees_latitude",
                "degrees_longitude",
                "remaining_battery_energy_level_in_percents",
                "remaining_battery_energy_level_in_seconds",
                "heart_rate_in_beats_per_minute",
                "cumulative_number_of_heart_beats",
                "steps",
                "pres",
                "act",
                "comm"
            ]
        },
        "url": {
            "type": "string"
        },
        "values": {
            "items": {
                "$ref": "#/ContextValue"
            },
            "type": "array"
        },
        "version": {
            "type": "integer"
        }
    },
    "required": [
        "url",
        "reporter",
        "schema",
        "name",
        "scheme",
        "id",
        "values"
    ],
    "type": "object"
}