Start Core Hub FastAPI replacement foundation
This commit is contained in:
parent
75963233b6
commit
1e87adbcbb
37 changed files with 3292 additions and 30 deletions
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": []
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue