@clipboard-health/ai-rules 2.37.1 → 2.37.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -56,8 +56,10 @@ GET /shifts?filter[verified]=true&sort=startDate,-urgency&page[cursor]=abc&page[
|
|
|
56
56
|
- Add contracts to `contract-<microservice-name>` package
|
|
57
57
|
- Use `ts-rest` with composable Zod schemas (enforced by `enforce-ts-rest-in-controllers`)
|
|
58
58
|
- Own the shape of your inputs and outputs — do not depend on other contract packages (`contract-*`, `api-contract-*`, `flag-*`); `@clipboard-health/contract-core` is the only shared contract dependency
|
|
59
|
+
- Contracts validate the shape of the request and response, not the business logic
|
|
59
60
|
- Duplicate schemas from other contracts locally when needed — type-checking and response validation catch drift
|
|
60
61
|
- Do not re-export or pass through another contract's schemas or endpoints
|
|
62
|
+
- Do not directly test contracts; use a service test to verify the contract is working as expected
|
|
61
63
|
|
|
62
64
|
### Schema rules
|
|
63
65
|
|