Initial Commit
This commit is contained in:
33
openspec/archive/2026-04-19-enterprise-api-schemas/tasks.md
Normal file
33
openspec/archive/2026-04-19-enterprise-api-schemas/tasks.md
Normal file
@@ -0,0 +1,33 @@
|
||||
# Tasks: enterprise-api-schemas
|
||||
|
||||
## 1. Scaffold
|
||||
- [x] 1.1 `universal/docs/api-schemas/`; 100/100/100/100; guard tests; CLAUDE/README/FOLDERS.
|
||||
|
||||
## 2. Common group
|
||||
- [x] 2.1 `src/common/pagination.ts`, `sort.ts`, `filter.ts`, `id-param.ts`, `timestamps.ts`, `error-envelope.ts`.
|
||||
- [x] 2.2 Co-located `.md` + unit tests per schema.
|
||||
|
||||
## 3. Auth group
|
||||
- [x] 3.1 `src/auth/login.ts`, `register.ts`, `refresh.ts`, `logout.ts`, `context.ts`.
|
||||
|
||||
## 4. Admin group
|
||||
- [x] 4.1 `src/admin/ping.ts`, `health.ts`, `status.ts`.
|
||||
|
||||
## 5. Events group
|
||||
- [x] 5.1 `src/events/domain-event.ts`, `envelope.ts`, `metadata.ts`.
|
||||
|
||||
## 6. Helpers
|
||||
- [x] 6.1 `src/helpers/to-suaveplan-error.ts` — ZodError → SuaveplanError lift.
|
||||
- [x] 6.2 `src/helpers/to-json-schema.ts` — JSON Schema dump.
|
||||
- [x] 6.3 `src/helpers/to-openapi.ts` — OpenAPI path/component fragment generator.
|
||||
|
||||
## 7. Barrel / subpath exports
|
||||
- [x] 7.1 `./admin`, `./auth`, `./common`, `./events`, `./helpers`.
|
||||
|
||||
## 8. Property tests
|
||||
- [x] 8.1 fast-check arbitraries for every top-level schema round-trip.
|
||||
|
||||
## 9. Docs / README / benchmarks
|
||||
|
||||
## 10. Ship gate
|
||||
- [x] 10.1 Verification sequence; fold + archive.
|
||||
Reference in New Issue
Block a user