Skip to main content

Interface: SchemaEntry

Defined in: packages/core/src/application/ports/schema-registry.ts:29

A discovered schema entry returned by SchemaRegistry.list.

Contains enough metadata for display and selection without loading the full schema. Pass ref directly to SchemaRegistry.resolve to get the complete Schema.

Properties

name

readonly name: string

Defined in: packages/core/src/application/ports/schema-registry.ts:41

The schema name as it appears in its directory or package, without prefix or workspace qualifier. Suitable for display. Examples: "schema-std", "spec-driven", "my-billing-schema".


ref

readonly ref: string

Defined in: packages/core/src/application/ports/schema-registry.ts:34

The full reference string — pass this to resolve() to load the schema. Examples: "@specd/schema-std", "#spec-driven", "#billing:my-schema".


source

readonly source: "npm" | "workspace"

Defined in: packages/core/src/application/ports/schema-registry.ts:44

Where this schema was discovered.


workspace?

readonly optional workspace?: string

Defined in: packages/core/src/application/ports/schema-registry.ts:50

The workspace whose schemasPath contains this schema. Present only when source is "workspace".