Skip to content

Commit d6db426

Browse files
authored
Merge pull request #99 from kkazuo/patch-1
Fix for Giraffe 5.0.0 API change
2 parents 0f7ca4b + 55040c0 commit d6db426

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/Using.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ To use FSharp.SystemTextJson in Giraffe (for example with the `json` function):
102102
```fsharp
103103
open System.Text.Json
104104
open System.Text.Json.Serialization
105-
open Giraffe.Serialization
105+
open Giraffe
106106
107107
let configureServices (services: IServiceCollection) =
108108
let jsonOptions = JsonSerializerOptions()
109109
jsonOptions.Converters.Add(JsonFSharpConverter())
110110
services.AddSingleton(jsonOptions) |> ignore
111-
services.AddSingleton<IJsonSerializer, SystemTextJsonSerializer>() |> ignore
111+
services.AddSingleton<Json.ISerializer, SystemTextJson.Serializer>() |> ignore
112112
// ...
113113
```
114114

0 commit comments

Comments
 (0)