From 58ba24e5bc371aed18233f9e6ffc1c969b3f9ca0 Mon Sep 17 00:00:00 2001 From: Ferdi Koomen Date: Mon, 31 Jan 2022 19:38:23 +0100 Subject: [PATCH] - Fixed #948 --- docs/angular-support.md | 2 +- package.json | 1 + src/templates/exportService.hbs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/angular-support.md b/docs/angular-support.md index 45905fd3..9d5d5bab 100644 --- a/docs/angular-support.md +++ b/docs/angular-support.md @@ -1,6 +1,6 @@ # Angular support -This tool allows you to generate a client based on the [`Angular HttpClient`](https://angular.io/guide/http). +This tool allows you to generate a client based on the Angular [`HttpClient`](https://angular.io/guide/http). The generated services are fully injectable and make use of the [RxJS](https://rxjs.dev/) Observer pattern. If you want to generate the Angular based client then you can specify `--client angular` in the openapi call: diff --git a/package.json b/package.json index 74ddc998..b8777d43 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "fetch", "xhr", "axios", + "angular", "node" ], "maintainers": [ diff --git a/src/templates/exportService.hbs b/src/templates/exportService.hbs index 67b7a1f8..7cbaa75d 100644 --- a/src/templates/exportService.hbs +++ b/src/templates/exportService.hbs @@ -124,7 +124,7 @@ export class {{{name}}}{{{@root.postfix}}} { {{#if errors}} errors: { {{#each errors}} - {{{code}}}: `{{{description}}}`, + {{{code}}}: `{{{escapeDescription description}}}`, {{/each}} }, {{/if}}