Skip to content

docs: fix the three XML comment warnings in Core.fs - #79

Merged
dbrattli merged 1 commit into
mainfrom
fix/xmldoc-warnings
Aug 6, 2026
Merged

docs: fix the three XML comment warnings in Core.fs#79
dbrattli merged 1 commit into
mainfrom
fix/xmldoc-warnings

Conversation

@dbrattli

@dbrattli dbrattli commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Clears the FS3390 warnings in the release build. Two distinct causes, both in src/Core.fs.

validateJson (L233) — two missing entries. HttpHandler expands to HttpFunc -> HttpContext -> HttpFuncResult, and the body is directly a lambda, so F# sees three curried parameters while the doc comment named only f. Its sibling bindJson already carries the empty next/ctx entries — validateJson was added later and omitted them. Now matches.

json (L317) — one entry too many. It documented a ctx parameter it doesn't have. The let bytes = ... hoist makes the lambda a returned value rather than further curried parameters, so dataObj is the only parameter. Same shape as text and htmlFile, neither of which documents ctx.

Each warning is reported once per backend project, which is why three warnings show up as nine lines in the release log.

Testing

  • All three projects build -c Release with 0 warnings (was 3 each).
  • just test-beam: 94 passed / 7 skipped, unchanged.

Comment-only; no code touched.

🤖 Generated with Claude Code

`validateJson` documented only `f`, but HttpHandler expands to
HttpFunc -> HttpContext -> HttpFuncResult, so F# sees three curried parameters
and warns about the two undocumented ones. Its sibling `bindJson` already
carries the empty `next`/`ctx` entries; this matches it.

`json` had the opposite problem: it documented a `ctx` parameter it does not
have. The `let bytes` hoist means the lambda is a returned value rather than
further curried parameters, so only `dataObj` is a parameter. Same shape as
`text` and `htmlFile`, neither of which documents `ctx`.

Each warning was reported once per backend project, hence nine lines in the
release build. All three projects now build with 0 warnings.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@dbrattli
dbrattli merged commit 4a5b2fc into main Aug 6, 2026
2 checks passed
@dbrattli
dbrattli deleted the fix/xmldoc-warnings branch August 6, 2026 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant