Frank.Analyzers
7.3.3
dotnet add package Frank.Analyzers --version 7.3.3
NuGet\Install-Package Frank.Analyzers -Version 7.3.3
<PackageReference Include="Frank.Analyzers" Version="7.3.3" />
<PackageVersion Include="Frank.Analyzers" Version="7.3.3" />
<PackageReference Include="Frank.Analyzers" />
paket add Frank.Analyzers --version 7.3.3
#r "nuget: Frank.Analyzers, 7.3.3"
#:package Frank.Analyzers@7.3.3
#addin nuget:?package=Frank.Analyzers&version=7.3.3
#tool nuget:?package=Frank.Analyzers&version=7.3.3
Frank.Analyzers
Compile-time static analysis to catch common mistakes in Frank applications.
Installation
dotnet add package Frank.Analyzers
Available Analyzers
FRANK001: Duplicate HTTP Handler Detection
Detects when multiple handlers for the same HTTP method are defined on a single resource. Only the last handler would be used at runtime, so this is almost always a mistake.
// This will produce a warning:
resource "/example" {
name "Example"
get (fun ctx -> ctx.Response.WriteAsync("First")) // Warning: FRANK001
get (fun ctx -> ctx.Response.WriteAsync("Second")) // This one takes effect
}
FRANK002: Duplicate Accepts Media Type
Detects when the same media type is registered more than once inside a single negotiate { } block. Only the first registration can ever be selected — later ones for the same media type are unreachable — so this is almost always a mistake.
// This will produce a warning:
resource "/test" {
get (negotiate {
accepts "application/json" jsonHandler
accepts "application/json" anotherJsonHandler // Warning: FRANK002 (unreachable)
})
}
IDE Integration
Frank.Analyzers works with:
- Ionide (VS Code)
- Visual Studio with F# support
- JetBrains Rider
Warnings appear inline as you type, helping catch issues before you even compile. It runs via FSharp.Analyzers.SDK — no changes to your build are required beyond adding the package reference.
Related Packages
Analyzes code written against Frank.
See the project repository for the complete guide and sample applications.
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- FSharp.Analyzers.SDK (>= 0.35.0)
- FSharp.Core (>= 10.0.101)
-
net8.0
- FSharp.Analyzers.SDK (>= 0.35.0)
- FSharp.Core (>= 10.0.101)
-
net9.0
- FSharp.Analyzers.SDK (>= 0.35.0)
- FSharp.Core (>= 10.0.101)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 7.3.3 | 172 | 8/11/2026 |
| 7.3.2 | 121 | 8/10/2026 |
| 7.2.1 | 145 | 6/22/2026 |
| 7.2.0 | 163 | 2/10/2026 |
| 7.1.0 | 162 | 2/8/2026 |
| 7.0.0-build.0 | 104 | 2/6/2026 |
| 6.5.0 | 156 | 2/5/2026 |
| 6.4.1 | 167 | 2/4/2026 |
| 6.4.1-build.0 | 106 | 2/4/2026 |
### New in 7.3.3 (Released 2026-08-10)
**Frank.Rdf - Async IBufferWriter Streaming**
- **New: `Doc.writeJsonLdAsync doc bufferWriter`** — async overload that writes JSON-LD expanded-form directly to an `IBufferWriter<byte>` (e.g. `HttpResponse.BodyWriter`/`PipeWriter`), without intermediate string allocation or copying. Encodes UTF8 directly to the buffer for maximum efficiency in response streaming. Completes after serialization and flushing to the buffer.
- **Recommended for response streaming:** `writeJsonLdAsync` is the preferred method when serving JSON-LD from a Frank handler over HTTP. Streaming directly to `PipeWriter` avoids `AllowSynchronousIO` requirements and eliminates intermediate buffering layers that `StreamWriter` would introduce.
- **Three serialization options now available:** Use `writeJsonLdAsync` for HTTP responses (most efficient), `writeJsonLd` for flexibility with any `TextWriter`, and `toJsonLd` for testing/debugging.
- **Sample updated:** `sample/Frank.Rdf.Sample` demonstrates `Doc.writeJsonLdAsync` streaming the `application/ld+json` representation directly to the response body via `negotiate { }` content negotiation.
- **Test coverage:** comprehensive test cases for `writeJsonLdAsync` including single and multi-subject documents, language-tagged strings, and round-trip parsing.