OpenAPI Spec Class Specification

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

draft 1.0.0-draft design-spec
idschema-atoms/design-spec/openapi-spec-class-spec
authorsconvergent-systems-co
conforms_toschema-atoms/design-spec/atom-spec@1.1.0
created2026-05-23

OpenAPI Spec Class Specification

Class: openapi-spec Version: 1.0.0-draft Conforms to: schema-atoms/design-spec/atom-spec@1.1.0

What This Class Covers

The openapi-spec class represents REST/HTTP API contracts expressed as OpenAPI 3.x documents. It captures the complete interface surface of an HTTP API: paths, operations, request/response schemas, security schemes, and server definitions.

Accepted Asset Formats

Normative Requirements

Example Atom Reference

schema-atoms/api-spec/payments-api-openapi@1.2.0
├── atom.toml   (class = "openapi-spec")
└── openapi.yaml

This atom would declare the HTTP contract for a payments API, including all paths, request bodies, and response schemas, in a single OpenAPI 3.x document.


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

[spec]
class       = "design-spec"
title       = "OpenAPI Spec Class Specification"
summary     = "Normative definition of the openapi-spec atom class in schema-atoms."
authors     = ["convergent-systems-co"]
conforms_to = "schema-atoms/design-spec/atom-spec@1.1.0"
asset       = "spec.md"