@open-rpc/specification-extension-spec
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

OpenRPC Specification Extension

Specification Extensions allows extensions to the OpenRPC Schema and is always prefixed by "x-". The extensions may or may not be supported by the available tooling, but those may be extended as well to add requested support (if tools are internal or open-sourced).

Goals

  • Define an extension in JSON - Human and machine readable.
  • Consistent with OpenRPC - familiar OpenRPC terms.
  • Extend OpenRPC - so developers can add features and tooling around OpenRPC that isn't currently in the spec, or falls outside of the specification context.
  • Prototype New OpenRPC changes - new additions to the OpenRPC specification can be created and prototyped as a Specification Extension and have working tooling before being merged into the OpenRPC specification.

You can view the JSON-Schema meta-schema here: ./meta-schema.json.

Installation

bash
npm install @open-rpc/specification-extension-spec

Usage

This package contains the OpenRPC Specification Extension JSON Schema and example extensions. It can be imported using CommonJS or ESM:

import { metaSchema, examples } from "@open-rpc/specification-extension-spec";

NOTE: Tooling support is still WIP for Specification Extensions.

Readme

Keywords

Package Sidebar

Install

npm i @open-rpc/specification-extension-spec

Weekly Downloads

7,855

Version

1.0.2

License

Apache-2.0

Unpacked Size

96.2 kB

Total Files

26

Last publish

Collaborators

  • belfordz
  • shanejonas