Skip to content

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