JSON-RPC Spec Class Specification

Normative definition of the json-rpc-spec atom class in schema-atoms.

draft 1.0.0-draft design-spec
idschema-atoms/design-spec/json-rpc-spec-class-spec
authorsconvergent-systems-co
conforms_toschema-atoms/design-spec/[email protected]
created2026-05-23

JSON-RPC Spec Class Specification

Class: json-rpc-spec Version: 1.0.0-draft Conforms to: schema-atoms/design-spec/[email protected]

What This Class Covers

The json-rpc-spec class represents JSON-RPC 2.0 method contracts expressed as structured specification documents. It captures method names, parameter schemas, result schemas, error codes, and notification definitions that together describe a JSON-RPC 2.0 API surface.

Accepted Asset Formats

Normative Requirements

Example Atom Reference

schema-atoms/api-spec/[email protected]
├── atom.toml   (class = "json-rpc-spec")
└── methods.yaml

This atom would declare the JSON-RPC 2.0 method contracts for a wallet service, including wallet_getBalance, wallet_sendTransaction, and their respective parameter and result schemas.


atom.toml
# atom.toml — class specification atom for json-rpc-spec
id          = "schema-atoms/design-spec/json-rpc-spec-class-spec"
version     = "1.0.0-draft"
content_hash = "92c9799da3848c2075865d3d5db08ca62c907a9daae9c0d39d81c8747815c57f"
lifecycle   = "draft"
created_at  = "2026-05-23T00:00:00Z"

[spec]
class       = "design-spec"
title       = "JSON-RPC Spec Class Specification"
summary     = "Normative definition of the json-rpc-spec atom class in schema-atoms."
authors     = ["convergent-systems-co"]
conforms_to = "schema-atoms/design-spec/[email protected]"
asset       = "spec.md"