Support typescript strict mode issue 23
Fix enum.map is not a function issue 20 Fix class properties was empty issue 20
- add custom formatter
- Fix include filter
- Support
Service
filter andService[method]
filter. for example like this, or usecd example && yarn build:api-include
let include = [ 'Products', // tagName 'Estimates',//tagName { 'User': ['history'] } ] codegen({ methodNameMode: 'path', source: require('../swagger.json'), outputDir: './swagger/services', include })
- Fix array of number enums issue 9
- Support custom
axios.instance
(issue 6 with kt81) - Support other support similar to the
axios
library, for example Fly.js, required settingISwaggerOptions.useCustomerRequestInstance = true
- Add
ISwaggerOptions.serviceNameSuffix
,use for customizeService
class suffix ISwaggerOptions.useStaticMethod = true
is default- Optimize overall code implementation and logic
- Fixes issue 2 issue 3
- Please refer to example(e.g.
tsconfig.json
、npm script
)
- Upgrade example,adding an demo of using 'operationId' as the method name
- Fix the exception of definition "let data = null" in the request mothod when using Typescript3.0.0 (b0dad90 by kt81)
- Fixed Enumeration case conversion
- Fixed A non-file parameter can be submitted correctly using 'FormData'
- Optimization: Optimize generation rules when an property of the entity is an enumerated array example
- Fixed Skip the current method when the tags are empty
- Adjust the generated class name
- Use ‘Promise’ instead of ‘AxiosPromise’. If the interface is called successfully, the response.data is returned by default.
- Modify REANDME.md