Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

fix: allow the request ID to be a string, number or null #156

Merged
merged 3 commits into from
Oct 18, 2023

Conversation

danroc
Copy link
Contributor

@danroc danroc commented Oct 16, 2023

Description

The current API forces the ID of the JSON-RPC requests to be a UUIDv4, which is not compliant with the official JSON-RPC specs. Note, however, that this constraint doesn't have an impact on devs who use the Keyring clients, such as KeyringSnapRpcClient and KeyringSnapControllerClient.

This PR removes this limitation and allows the request ID to be any string, number or null.

Related issues

Fixes #154

@danroc danroc marked this pull request as ready for review October 16, 2023 08:54
@danroc danroc requested a review from a team as a code owner October 16, 2023 08:54
gantunesr
gantunesr previously approved these changes Oct 16, 2023
src/rpc-handler.test.ts Show resolved Hide resolved
@danroc danroc added this pull request to the merge queue Oct 17, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 17, 2023
@danroc danroc added this pull request to the merge queue Oct 18, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 18, 2023
@danroc danroc added this pull request to the merge queue Oct 18, 2023
@danroc danroc removed this pull request from the merge queue due to a manual request Oct 18, 2023
@danroc danroc added this pull request to the merge queue Oct 18, 2023
Merged via the queue into main with commit be49659 Oct 18, 2023
16 checks passed
@danroc danroc deleted the feature/rpc-request-id branch October 18, 2023 19:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

handleKeyringRequest should not require the JSON-RPC id to be in UUID format
2 participants