This commit is contained in:
JMARyA 2024-08-27 23:33:09 +02:00
parent 0be7fff77d
commit 74b07a0ea3
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
8 changed files with 107 additions and 10 deletions

23
schema/item.json Normal file
View file

@ -0,0 +1,23 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "Item",
"description": "Item Metadata",
"properties": {
"name": {
"type": "string",
"title": "Item Name",
"description": "The name of the Item"
},
"variants": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"title": "Item Variant",
"description": "A Variant of an Item",
"properties": {}
}
}
}
}

33
schema/process.json Normal file
View file

@ -0,0 +1,33 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Process",
"description": "Process Description",
"properties": {
"name": {
"type": "string",
"title": "Process Name",
"description": "The name of the Process"
},
"depends": {
"type": "array",
"title": "Process Dependencies",
"description": "List of Items a Process depends on",
"items": {
"type": "string"
}
},
"next": {
"type": "string",
"title": "Next Process",
"description": "The Process that succeeds this one."
},
"produces": {
"type": "array",
"title": "Produced Items",
"description": "Items this Process will produce",
"items": {
"type": "string"
}
}
}
}