restore: import verified wave3 baseline
This commit is contained in:
@@ -2,32 +2,72 @@
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "ResourceHeader",
|
||||
"type": "object",
|
||||
"required": ["id", "kind", "schema_version", "revision", "content_hash", "dependencies"],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z0-9_]+(?:\\.[a-z0-9_]+)+$"
|
||||
},
|
||||
"kind": {
|
||||
"enum": ["character", "world_book", "persona", "plot_module", "item_spec"]
|
||||
},
|
||||
"schema_version": {
|
||||
"const": 1
|
||||
},
|
||||
"revision": {
|
||||
"type": "string",
|
||||
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
|
||||
},
|
||||
"content_hash": {
|
||||
"type": "string",
|
||||
"pattern": "^sha256:[0-9a-f]{64}$"
|
||||
"type": "string"
|
||||
},
|
||||
"dependencies": {
|
||||
"type": "array",
|
||||
"default": [],
|
||||
"items": {
|
||||
"type": "object"
|
||||
"$ref": "#/$defs/ResourceRef"
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"$ref": "#/$defs/ResourceKind"
|
||||
},
|
||||
"revision": {
|
||||
"type": "string"
|
||||
},
|
||||
"schema_version": {
|
||||
"type": "integer",
|
||||
"format": "uint32",
|
||||
"minimum": 0
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
"required": [
|
||||
"id",
|
||||
"kind",
|
||||
"schema_version",
|
||||
"revision",
|
||||
"content_hash"
|
||||
],
|
||||
"$defs": {
|
||||
"ResourceKind": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"character",
|
||||
"world_book",
|
||||
"persona",
|
||||
"plot_module",
|
||||
"item_spec"
|
||||
]
|
||||
},
|
||||
"ResourceRef": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"content_hash": {
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"$ref": "#/$defs/ResourceKind"
|
||||
},
|
||||
"revision": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"kind",
|
||||
"revision",
|
||||
"content_hash"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user