forked from finos/architecture-as-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Matthew Bain <[email protected]>
- Loading branch information
1 parent
fa8a12b
commit 9d844c2
Showing
1 changed file
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://calm.finos.org/draft/2024-10/meta/units.json", | ||
"title": "Common Architecture Language Model Units", | ||
"defs": { | ||
"time-unit": { | ||
"type": "object", | ||
"description": "A unit of time with a value and a unit type.", | ||
"properties": { | ||
"unit": { | ||
"enum": [ | ||
"nanoseconds", | ||
"milliseconds", | ||
"seconds", | ||
"minutes", | ||
"hours", | ||
"days", | ||
"weeks", | ||
"months", | ||
"years" | ||
], | ||
"description": "The unit of time (e.g., seconds, minutes, hours)." | ||
}, | ||
"value": { | ||
"type": "number", | ||
"minimum": 0, | ||
"description": "The numeric value representing the amount of time." | ||
} | ||
}, | ||
"required": ["unit", "value"], | ||
"additionalProperties": false, | ||
"examples": [ | ||
{ | ||
"unit": "seconds", | ||
"value": 30 | ||
}, | ||
{ | ||
"unit": "minutes", | ||
"value": 15 | ||
}, | ||
{ | ||
"unit": "hours", | ||
"value": 1 | ||
}, | ||
{ | ||
"unit": "days", | ||
"value": 7 | ||
} | ||
] | ||
}, | ||
"cron-expression": { | ||
"type": "string", | ||
"title": "Cron Expression", | ||
"description": "A valid Unix-style cron expression.", | ||
"pattern": "^([0-5]?\\d)\\s([01]?\\d|2[0-3])\\s(3[01]|[12]\\d|0?[1-9])\\s(1[0-2]|0?[1-9])\\s([0-6])$", | ||
"examples": [ | ||
"0 0 * * 0", | ||
"30 14 1 * 5", | ||
"15 10 * * *" | ||
] | ||
} | ||
}, | ||
"additionalProperties": false | ||
} |