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
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 |