JsonSchemaSource.

ToTypeScriptClient(FilePath) Method

Summary

Generates a TypeScript client from the JSON Schema metadata
Assembly
Cake.NSwag.dll
Namespace
Cake.NSwag.Sources
Containing Type
JsonSchemaSource

Syntax

public JsonSchemaSource ToTypeScriptClient(FilePath outputFile)

Examples

NSwag.FromJsonSchema("./schema.json").ToTypeScriptClient("./client.ts");

Parameters

Name Type Description
outputFile FilePath File path for the generated client code

Return Value

Type Description
JsonSchemaSource The metadata source