-
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.
Signed-off-by: Tom Wright <tom@inflatablecookie.com>
- Loading branch information
1 parent
29b16e1
commit cebd124
Showing
8 changed files
with
183 additions
and
7 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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
## v0.1.0 (2024-07-24) | ||
* Built initial Blueprint implementation | ||
* Added Blueprint Factory | ||
* Constructed JSON Blueprint schemas |
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
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,24 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"$id": "https://schema.decodelabs.com/chronos/0.1/actions.json", | ||
"$anchor": "actions", | ||
"type": "object", | ||
"description": "A list of functional actions that must be completed to finish the step.", | ||
"patternProperties": { | ||
"^(([A-Z][a-zA-Z0-9]+)\\.)?([A-Z][a-zA-Z0-9]+)(\\:\\$?([a-zA-Z0-9]+))?$": { | ||
"type": "object", | ||
"description": "A functional action that must be completed to finish the step.", | ||
"patternProperties": { | ||
"^([a-zA-Z0-9]+)$": { | ||
"anyOf": [ | ||
{ "type": [ "string", "number" ] }, | ||
{ "type": "array", "items": { "type": "string" } }, | ||
{ "$ref": "#actions" } | ||
] | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false | ||
} |
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,58 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"$id": "https://schema.decodelabs.com/chronos/0.1/program.json", | ||
"type": "object", | ||
"properties": { | ||
"$schema": { | ||
"type": "string", | ||
"description": "The schema that this document should conform to.", | ||
"enum": [ | ||
"https://schema.decodelabs.com/chronos/0.1/program.json", | ||
"../schema/0.1/program.json" | ||
] | ||
}, | ||
"id": { | ||
"$ref": "shared.json#id", | ||
"description": "The unique identifier for this program." | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "The name of the program." | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "A short description of what the program does." | ||
}, | ||
"categories": { | ||
"type": "array", | ||
"description": "A list of IDs of categories that this program belongs to.", | ||
"items": { | ||
"$ref": "shared.json#id", | ||
"description": "The unique identifier for a category." | ||
} | ||
}, | ||
"duration": { | ||
"type": "string", | ||
"description": "A string representation of the estimated time it will take to complete the program." | ||
}, | ||
"priority": { | ||
"$ref": "shared.json#priority", | ||
"description": "A string representation of the priority of the program." | ||
}, | ||
"steps": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "step.json" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"name", | ||
"description", | ||
"categories", | ||
"duration", | ||
"priority", | ||
"steps" | ||
] | ||
} |
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,27 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"$id": "https://schema.decodelabs.com/chronos/0.1/shared.json", | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"$anchor": "id", | ||
"type": "string", | ||
"description": "The unique identifier for this item.", | ||
"pattern": "^[a-z0-9-_]+$", | ||
"minLength": 5, | ||
"maxLength": 64 | ||
}, | ||
"priority": { | ||
"$anchor": "priority", | ||
"type": "string", | ||
"description": "A string representation of the priority of this item.", | ||
"default": "medium", | ||
"enum": [ | ||
"low", "Low", | ||
"medium", "Medium", | ||
"high", "High", | ||
"critical", "Critical" | ||
] | ||
} | ||
} | ||
} |
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,43 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema", | ||
"$id": "https://schema.decodelabs.com/chronos/0.1/step.json", | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "The unique identifier for this step." | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "The readable name of the step." | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "A short description of what the step does." | ||
}, | ||
"priority": { | ||
"$ref": "shared.json#priority", | ||
"description": "A string representation of the priority of the step." | ||
}, | ||
"duration": { | ||
"type": "string", | ||
"description": "A string representation of the estimated time it will take to complete the step." | ||
}, | ||
"await": { | ||
"type": "object", | ||
"description": "A list of actions and optional time offsets that must be completed before this step can be started.", | ||
"patternProperties": { | ||
"^[a-z0-9-_]+$": { | ||
"type": [ "string", "null" ] | ||
} | ||
} | ||
}, | ||
"actions": { | ||
"$ref": "actions.json" | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"actions" | ||
] | ||
} |
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
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