Skip to main content

Interface: SaveSpecMetadata

Defined in: packages/core/src/application/use-cases/save-spec-metadata.ts:33

Writes metadata for a spec.

Loads the existing metadata (if any) to obtain its originalHash for conflict detection, then delegates to SpecRepository.saveMetadata().

Methods

execute()

execute(input): Promise<SaveSpecMetadataResult | null>

Defined in: packages/core/src/application/use-cases/save-spec-metadata.ts:53

Executes the use case.

Parameters

input

SaveSpecMetadataInput

The metadata content and target spec

Returns

Promise<SaveSpecMetadataResult | null>

The spec label on success, or null if the spec does not exist

Throws

When the content fails structural validation

Throws

When a concurrent modification is detected and force is not set