SpaceApi-archive / OpenSpaceLint

The space API validator.
http://spaceapi.net
7 stars 3 forks source link

Redesign the sensors field #63

Closed slopjong closed 11 years ago

slopjong commented 11 years ago
{
    "sensors": [
        {
            "type": "temperature",
            "name": "adsfadsf",
            "location": "",
            "value": 134,
            "unit": "asdf"
        }
    ]
}

If the specification v3 allows multiple data types for a field must be clarified. The changelog says "type" arrays can no longer have schemas; remove "any" as a possible value.

slopjong commented 11 years ago

One space has the following defined:

    [23] => sensors.wind.name
    [24] => sensors.wind.speed
    [25] => sensors.wind.gust
    [26] => sensors.wind.unit

Speed and gust values in one sensor object? They have two different types, don't they?

slopjong commented 11 years ago

The data type any is used anyway. The first of two proposals is now implemented.

More examples for sensor types are here.

slopjong commented 11 years ago

Done. Implemented as discussed on the mailing-list & in different hackerspace irc channels.