Skip to content

Error groups - Extended open-rpc spec sample implementation #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 10, 2025

Conversation

simsonraj
Copy link
Owner

No description provided.

type: "string"
description: "The message of the error."
data:
type: "string"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the type on data isn't actually a requirement, the specification allows for any type for data. So I would just rm type:string here .

@@ -0,0 +1,29 @@
openrpcExtension: "0.0.0-development"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's now an official specification to pull from in the repo https://github.com/open-rpc/tools/blob/main/packages/extensions/src/x-error-groups/x-error-groups.json. it has a oneOf at the top to explicitly signal that ref's are supported, and better external docs etc...

@simsonraj simsonraj changed the title sample implementation Error groups validation - sample implementation Apr 27, 2025
@simsonraj simsonraj changed the title Error groups validation - sample implementation Error groups validation - Extended open-rpc spec sample implementation Apr 27, 2025
@simsonraj simsonraj changed the title Error groups validation - Extended open-rpc spec sample implementation Error groups - Extended open-rpc spec sample implementation Apr 27, 2025
@simsonraj simsonraj merged commit 623c57a into main May 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants