mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-03 06:00:52 +00:00
With this change, users providing custom configuration must provide an exported Configuration factory, rather than just an object. This is needed to be Angular AoT compatible. Example use: import * as api from '../api'; /** Configuration settings for the backend API */ export function backendConfigurationFactory(): api.Configuration { return new api.Configuration({basePath: '/api'}); } @NgModule({ imports: [api.ApiModule.forConfig(backendConfigurationFactory)], ...