mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 19:08:52 +00:00
fb04b5a26a
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)], ... |
||
---|---|---|
.. | ||
swagger-codegen | ||
swagger-codegen-cli | ||
swagger-codegen-maven-plugin | ||
swagger-generator |