mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-21 22:01:44 +00:00
add shared contracts
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
parent
bc1878c1da
commit
679fd504a2
6 changed files with 126 additions and 0 deletions
48
packages/contracts/schemas/control-plane-health.schema.json
Normal file
48
packages/contracts/schemas/control-plane-health.schema.json
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://ainas.local/schemas/control-plane-health.schema.json",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"service",
|
||||
"status",
|
||||
"timestamp",
|
||||
"uptimeSeconds",
|
||||
"nextcloud"
|
||||
],
|
||||
"properties": {
|
||||
"service": {
|
||||
"const": "control-plane"
|
||||
},
|
||||
"status": {
|
||||
"const": "ok"
|
||||
},
|
||||
"timestamp": {
|
||||
"type": "string"
|
||||
},
|
||||
"uptimeSeconds": {
|
||||
"type": "number"
|
||||
},
|
||||
"nextcloud": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"configured",
|
||||
"baseUrl",
|
||||
"provider"
|
||||
],
|
||||
"properties": {
|
||||
"configured": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"baseUrl": {
|
||||
"type": "string"
|
||||
},
|
||||
"provider": {
|
||||
"const": "nextcloud"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue