SpecVersion

The `SpecVersion` entity.

Definition

TypeScript
interface SpecVersion {
  id: string;
  specId: string;
  version: string;
  spec: unknown;
  parentId: string | null;
  fetchedAt: string;
}

Fields

FieldTypeNotes
idstringreadonly required
specIdstringrequired — Parent spec.
versionstringrequired — Stable version identifier — the spec's info.version if present, else a content hash of the spec bytes. Lets refresh detect 'no change, skip'.
specunknownrequired — Raw OpenAPI spec at this version. Stored as JSONB; consumers should expect the OpenAPI / Swagger schema shape but the entity treats it as opaque.
parentIdstring | nullrequired — Previous version in the history chain. Null for the first.
fetchedAtstringrequired — ISO-8601 timestamp the spec was fetched and ingested.