mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
- Fixed #948
This commit is contained in:
parent
ff132fcf5d
commit
58ba24e5bc
@ -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:
|
||||
|
||||
|
||||
@ -22,6 +22,7 @@
|
||||
"fetch",
|
||||
"xhr",
|
||||
"axios",
|
||||
"angular",
|
||||
"node"
|
||||
],
|
||||
"maintainers": [
|
||||
|
||||
@ -124,7 +124,7 @@ export class {{{name}}}{{{@root.postfix}}} {
|
||||
{{#if errors}}
|
||||
errors: {
|
||||
{{#each errors}}
|
||||
{{{code}}}: `{{{description}}}`,
|
||||
{{{code}}}: `{{{escapeDescription description}}}`,
|
||||
{{/each}}
|
||||
},
|
||||
{{/if}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user