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
@@ -146,9 +124,7 @@ The following steps describe how to generate and use a JSON:API client in C#, co
146
124
147
125
### Other IDEs
148
126
149
-
When using the command line, you can try the [Microsoft.dotnet-openapi Global Tool](https://docs.microsoft.com/en-us/aspnet/core/web-api/microsoft.dotnet-openapi?view=aspnetcore-5.0).
150
-
151
-
Alternatively, the following section shows what to add to your client project file directly:
127
+
The following section shows what to add to your client project file directly:
152
128
153
129
```xml
154
130
<ItemGroup>
@@ -160,9 +136,8 @@ Alternatively, the following section shows what to add to your client project fi
@@ -193,20 +168,20 @@ Various switches enable you to tweak the client generation to your needs. See th
193
168
194
169
# [NSwag](#tab/nswag)
195
170
196
-
The `OpenApiReference` can be customized using various [NSwag-specific MSBuild properties](https://github.com/RicoSuter/NSwag/blob/7d6df3af95081f3f0ed6dee04be8d27faa86f91a/src/NSwag.ApiDescription.Client/NSwag.ApiDescription.Client.props).
171
+
The `OpenApiReference`element can be customized using various [NSwag-specific MSBuild properties](https://github.com/RicoSuter/NSwag/blob/7d6df3af95081f3f0ed6dee04be8d27faa86f91a/src/NSwag.ApiDescription.Client/NSwag.ApiDescription.Client.props).
197
172
See [the source code](https://github.com/RicoSuter/NSwag/blob/master/src/NSwag.Commands/Commands/CodeGeneration/OpenApiToCSharpClientCommand.cs) for their meaning.
173
+
The `JsonApiDotNetCore.OpenApi.Client.NSwag` package sets various of these for optimal JSON:API support.
198
174
199
175
> [!NOTE]
200
176
> Earlier versions of NSwag required the use of `<Options>` to specify command-line switches directly.
201
177
> This is no longer recommended and may conflict with the new MSBuild properties.
202
178
203
-
For example, the following section puts the generated code in a namespace and generates an interface (handy when writing tests):
179
+
For example, the following section puts the generated code in a namespace, makes the client class internal and generates an interface (handy when writing tests):
0 commit comments