V0.6.2 docs openapi #37

Merged
xcaliber merged 4 commits from v0.6.2-docs-openapi into main 2026-03-31 12:01:51 +00:00
Showing only changes of commit fad32bd48a - Show all commits

View File

@@ -7,7 +7,8 @@ import (
"switchboard-core/database"
"switchboard-core/store"
"switchboard-core/store/sqlite"
postgres "switchboard-core/store/postgres"
sqlite "switchboard-core/store/sqlite"
)
// Minimal static spec for testing — valid OpenAPI 3.0 structure.
@@ -32,7 +33,10 @@ func openapiTestStores(t *testing.T) store.Stores {
t.Helper()
database.RequireTestDB(t)
database.TruncateAll(t)
return sqlite.NewStores(database.TestDB)
if database.IsSQLite() {
return sqlite.NewStores(database.TestDB)
}
return postgres.NewStores(database.TestDB)
}
// ── Test: Zero extensions → kernel spec only ──────────────────