Allow number values for JSON RPC id field

This commit is contained in:
Tobie Morgan Hitchcock 2022-10-14 07:56:35 +01:00
parent 9546b07d71
commit f31b7d7d17

View file

@ -114,6 +114,7 @@ impl Rpc {
let id = match req.pick(&*ID) {
Value::Uuid(v) => Some(v.to_raw()),
Value::Strand(v) => Some(v.to_raw()),
Value::Number(v) => Some(v.to_string()),
_ => return Response::failure(None, Failure::INVALID_REQUEST).send(chn).await,
};
// Fetch the 'method' argument