Allow number values for JSON RPC id
field
This commit is contained in:
parent
9546b07d71
commit
f31b7d7d17
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue