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
91 stars 68 forks source link

Add method for metadata keys to be unset back to their default values #650

Open godind opened 1 year ago

godind commented 1 year ago

This is about manipulating metadata (baseDeltas.json) using PUT.

Currently, there is no mechanism to unset a key. This limits our ability to set metadata keys back to their default values once the key is present in baseDeltas.json.

For example: We can, for a given path meta, use PUT to update displayName and:

  1. Create/update the key with a given string value
  2. We can set the value to an empty string ''
  3. We can (not sure if supported yet) set value to null to indicate no value should be use

But we cannot remove the key, which would effectively unset the key and have said metadata key go back to its default value.

I think sk could have plugin that exposes metadata keys using a thread save jsonPatch mechanism, or do we already have something similar?

godind commented 4 months ago

Simplified and revised report.