JsonSchemaSource.

ToCSharpClient(FilePath) Method

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