This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.NSwag.
Summary
Genreates a C# client from the JSON Schema metadata
- Assembly
- Cake
.NSwag .dll - Namespace
- Cake
.NSwag .Sources - Containing Type
- JsonSchemaSource
Syntax
public JsonSchemaSource ToCSharpClient(FilePath outputFile)
Examples
NSwag.FromJsonSchema("./schema.json").ToCSharpClient("./client.cs");
Parameters
Name | Type | Description |
---|---|---|
outputFile | FilePath | File path for the generated client code |
Return Value
Type | Description |
---|---|
JsonSchemaSource | The metadata source |