Skip to content

Commit 5c60220

Browse files
committed
fix(calm): make 'moments' a required property
1 parent 2f4162b commit 5c60220

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

calm-ai/tools/moment-creation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ Critical: Metadata can be either an array OR an object (see metadata creation to
219219

220220
## Schema Validation Rules
221221

222-
1. **Required Properties**: Must include `unique-id`, `node-type`, `name`, `description1`, `details`.
222+
1. **Required Properties**: Must include `unique-id`, `node-type`, `name`, `description`, `details`.
223223
2. **Node Type**: Must be `moment`
224224
3. **Details Object**: Only allows `detailed-architecture` and `required-pattern` properties
225225
4. **Metadata**: Can be array of objects OR single object (see metadata creation tool)

calm-models/src/model/moment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class CalmMoment extends CalmNode implements CalmAdaptable<CalmMomentSche
5252
description,
5353
validFrom,
5454
CalmNodeDetails.fromSchema(details),
55-
controls? CalmControls.fromSchema(controls): undefined,
55+
controls ? CalmControls.fromSchema(controls) : undefined,
5656
metadata ? CalmMetadata.fromSchema(metadata) : undefined,
5757
adrs,
5858
Object.keys(additional).length > 0 ? additional : undefined

calm/release/1.2/meta/timeline.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"$id": "https://calm.finos.org/release/1.2/meta/timeline.json",
44
"title": "Common Architecture Language Model (CALM) Timelines Vocab",
55
"type": "object",
6+
"required": [
7+
"moments"
8+
],
69
"properties": {
710
"current-moment": {
811
"type": "string",

0 commit comments

Comments
 (0)