metadata

The metadata is free-form, user-provided Map which is serialized into JSON and is inserted into the small peer info system doc at each collection interval. The Map has no schema except for the following constraints:

  1. All contained values must be JSON serializable.

  2. The size of the Map serialized as JSON may not exceed 128 KB.

  3. The Map may only be nested up to 64 levels deep.

  • Throws: InternalError if the ditto core native handle is invalid.

  • Throws: SmallPeerInfoError on set with relevant validation failure info.