Files
claude-config/rules/api-specs.md
T

11 lines
539 B
Markdown

---
paths:
- "**/*openapi*"
- "**/*swagger*"
- "**/api-docs/**"
---
# Public API specs
- Text in public API specs (OpenAPI `description`/`title` fields and the generated api-docs) is read by external consumers. Never leak internal references: no ticket IDs, internal URLs, repo/system code-names, "see ticket X". Describe behaviour in consumer terms. GOOD: `Deprecated alias for paymentAccountId`. BANNED: `…will be removed (ABC-123)`.
- The opposite of internal code comments, which *may* cite a ticket for a footgun/constraint.