HyperionGray / sansio-jsonrpc

JSON RPC v2.0 Sans I/O
MIT License
9 stars 3 forks source link

Set `id` to null when it cannot be parsed #2

Open mehaase opened 4 years ago

mehaase commented 4 years ago

When the server is unable to detect an ID in a request (e.g. the request cannot be parsed or the ID is an invalid type) it should send an error response with id set to null. We're not currently doing this. I'm not sure if this needs to happen in this library, of if it needs to be documented for downstream implementations.