You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 9, 2026. It is now read-only.
refactor(skills): replace correct-pattern samples with source references in boundary-validator (#72)
* refactor(skills): replace correct-pattern samples with source references in boundary-validator
Remove manually-maintained correct-pattern code blocks from references/
and replace with pointers to src/parse.ts and src/types/.
Violation patterns, checklists, and grep commands are kept as they are
unique to the skill and do not exist elsewhere.
This eliminates the drift risk between reference docs and implementation
without adding maintenance burden to contributors.
* refactor(skills): hyperlink source references in boundary-validator references
* refactor(skills): revert to plain path references in boundary-validator
Relative hyperlinks caused 404 without branch/SHA context.
Code spans (backticks) are sufficient for both AI agents and humans.
-**No overloads**: The function has exactly one signature
24
-
-**No options**: No optional parameters or configuration objects
25
-
-**No framework-specific adapters**: Works with standard FormData only
24
+
See implementation: `src/index.ts`, `src/parse.ts`
26
25
27
-
### Rationale
28
-
29
-
A minimal API surface reduces maintenance burden, prevents feature creep, and maintains the boundary-focused philosophy. Any additional functionality belongs in separate libraries that build on top of safe-formdata.
30
-
31
-
### Examples
32
-
33
-
**❌ Violations**:
26
+
### Violations
34
27
35
28
```typescript
36
-
// Adding overloads
29
+
//❌ Adding overloads
37
30
function parse(formData:FormData):ParseResult;
38
31
function parse(formData:FormData, options:ParseOptions):ParseResult;
39
32
40
-
// Adding options
33
+
//❌ Adding options
41
34
function parse(formData:FormData, options?: { allowDuplicates?:boolean }):ParseResult;
42
35
43
-
//Adding framework adapters
36
+
//❌ Framework adapters
44
37
function parseRequest(req:NextRequest):ParseResult;
45
-
function parseFromExpress(req:express.Request):ParseResult;
0 commit comments