generated from coulomb/repo-seed
Start Core Hub FastAPI replacement foundation
This commit is contained in:
35
contracts/schemas/hub-manifest.schema.json
Normal file
35
contracts/schemas/hub-manifest.schema.json
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://core-hub.local/contracts/schemas/hub-manifest.schema.json",
|
||||
"title": "Core Hub Capability Manifest",
|
||||
"type": "object",
|
||||
"required": ["hub_slug", "manifest_version", "capabilities"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"hub_slug": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z0-9][a-z0-9-]*$"
|
||||
},
|
||||
"manifest_version": {
|
||||
"type": "string"
|
||||
},
|
||||
"capabilities": {
|
||||
"type": "array",
|
||||
"items": {"type": "string"},
|
||||
"uniqueItems": true
|
||||
},
|
||||
"endpoints": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": ["rel", "href"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"rel": {"type": "string"},
|
||||
"href": {"type": "string"}
|
||||
}
|
||||
},
|
||||
"default": []
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user