feat: add initial v1 contracts
API dependency and security checks / audit (push) Canceled after 0s
API checks / checks (push) Canceled after 0s

This commit is contained in:
2026-10-25 03:52:40 +01:00
parent 94b8a57010
commit 90335ce1bd
4 changed files with 31 additions and 0 deletions
+2
View File
@@ -4,3 +4,5 @@ Shared versioned HTTP and authenticated WebSocket contracts for `trixie-server`
This repository contains schemas, shared enums, error codes, compatibility fixtures, contract tests, and API documentation only. This repository contains schemas, shared enums, error codes, compatibility fixtures, contract tests, and API documentation only.
The first contract slice is under `contracts/v1/` and `fixtures/v1/`. It covers server readiness and health so the client and server can be developed and tested together before Twitch integration.
+11
View File
@@ -0,0 +1,11 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://trixie.invalid/contracts/v1/health.json",
"title": "Trixie Health",
"type": "object",
"additionalProperties": false,
"required": ["status"],
"properties": {
"status": { "type": "string", "enum": ["ok"] }
}
}
+13
View File
@@ -0,0 +1,13 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://trixie.invalid/contracts/v1/server-info.json",
"title": "Trixie Server Info",
"type": "object",
"additionalProperties": false,
"required": ["api_version", "server_version", "status"],
"properties": {
"api_version": { "type": "string", "const": "v1" },
"server_version": { "type": "string", "minLength": 1 },
"status": { "type": "string", "enum": ["ready"] }
}
}
+5
View File
@@ -0,0 +1,5 @@
{
"api_version": "v1",
"server_version": "0.1.0-dev",
"status": "ready"
}