plugins โ
Type: IPluginGeneratorClass[] | Default: undefined
Usage โ
typescript
// openapi.config.ts
import { GeneratorConfig } from 'ng-openapi';
import { HttpResourcePlugin } from '@ng-openapi/http-resource';
export default {
plugins: [HttpResourcePlugin],
... // other configurations
} as GeneratorConfig;WARNING
plugins is a top-level configuration property, not part of options. A plugins array placed inside options is silently ignored.
Available Plugins โ
- HttpResourcePlugin
- ZodPlugin (Beta)
Notes โ
- Third-party plugins can be written against the documented contract โ see Plugin Authoring