mycognosist / solar

A minimal Secure Scuttlebutt replication node.
Other
20 stars 2 forks source link

Fix JSON-RPC server params #95

Closed mycognosist closed 4 months ago

mycognosist commented 4 months ago

While working on https://github.com/mycognosist/solar/pull/94 I realised the shape of the parameters for many of the methods were not spec-compliant. They must either be an array or a map. I've converted the methods which expected a string to instead expect an array of string; this ends up being a simpler implementation that using maps.