options
Type: object
| Required
Object containing various options to customize the code generation process.
Usage
typescript
// openapi.config.ts
import { GeneratorConfig } from 'ng-openapi';
const config: GeneratorConfig = {
options: {
dateType: 'Date',
enumStyle: 'enum',
generateServices: true,
generateEnumBasedOnDescription: false,
customHeaders: {
'Accept': 'application/json',
... // other headers
},
responseTypeMapping: {
'application/pdf': 'blob',
... // other mappings
},
... // other configurations
}
};
export default config;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22