SignalK / specification

Signal K is a JSON-based format for storing and sharing marine data from different sources (e.g. nmea 0183, 2000, seatalk, etc)
Other
92 stars 69 forks source link

fix: modify schema to enforce `description` and `units` #462

Closed bkp7 closed 6 years ago

bkp7 commented 6 years ago

Schema modified to enforce the written specification that description and units must be present in meta.

Also added possibility for meta to include an enum list of possible values where the value is non numeric. This is not mandatory as at 1.0.x but the documentation notes that it is likely to become mandatory in future (see issue #439).

Samples and tests corrected to comply with the requirement.

Additional tests added to test the schema modifications.

Although the schema is not backwards compatible (making description mandatory where it wasn't previously), this change is just placing into the schema a requirement that was previously written in the specification. As such it can be viewed as an ADDITION (a schema change that is compatible with all historical data).

closes #439