Skip to content

Commit 527bb9a

Browse files
committed
Added context in README
1 parent 4019acd commit 527bb9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/extensions/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ The corresponding PR definition frames these groups as the canonical vocabulary
1616
## Solution Layout
1717
- `components/` – YAML fragments exposing each error family as an OpenRPC `x-error-group` definition.
1818
- `schemas/x-error-category-ranges.json` – Extension to official `x-error-groups` that enforces the reserved integer windows per category during validation.
19+
- This is to achieve inbuild validation of the reserved ranges per category using native `minimum` & `maximum` properties of the extended schema.
20+
- Validation happens while running `scripts/validate.js` after building the final `refs-openrpc.json` / `openrpc.json`.
1921
- `scripts/build.js` – Loads the schema above, augments the `XErrorGroupsJSON` extension, and merges the groups into `refs-openrpc.json` / `openrpc.json`.
2022

2123
## Implemented Methods

0 commit comments

Comments
 (0)