- feat:
- Creating objects with strong type validation #153
- Prefer_Json_over_other_content_types (prefer 'form-data' over json)
- allow_self_signed_certificates
- chore:
- fix pathClassNameDefaultName params
- optimize
- optimize loaded spec document fail error
- optimize get uniqueMethodName fail error
- bugfix
- fix IRequestOptions
- fix cache spec
- bugfix
- fix #168
- fix className when it is the beginning of the number
- feat:
- set showError in axios interceptor config
- add classNameMode. when classNameMode=parentPath, codegen will take url penultimate path
- feat:
- set loading in axios interceptor config
- feat:
- support ios13 get method does not have body
- bugfix -fix requestBody upload file.
-
bugfix:
- fix missing comma in example config
-
optimize:
- chore(IParameter): Add optional $ref property
-
feat:
- feat(getUniqParams): Use name of $ref if v has no name
- optimize:
- Optimize PagedResultDto
- bugfix:
- add quotes string fallback to typeTemplate when typeString is an an empty string;(#145)
- feat:
- IRequestOptions extends AxiosRequestConfig when httpClient was axios
- bugfix:
- fix multipleFileMode basePath
- feat:support additionalProperties for top level entities
- feat:axios options for RequestOptions
- fix: ignore unused import
- fix: don't exclude props of untransformed props (#129)
- fix classTransform feature
- Bump axios from 0.19.0 to 0.21.1 (#125)
- fix: formdata upload multi-files
- feat: add support for custom method name mode (#122)
- feat: Include extra types (#118)
- fix: String Enums have prefix KEY (#120)
- fix: numeric enum keys are always prefixed with
KEY_
; relates to #65 (#114)
- fix basePath
- feat: support header parameter in request (#111)
- feat: support for "shortOperationId", with tag suffix removed (#108)
- feat;
options.sharedServiceOptions
- fix multipart request when no query params (#103)
- feat: make the basePath of swagger2.0 take effect
- feat: add url filter
- fix openapi v3 formdata (#100)
- feat: anyOf, allOf (#96)
- fix multipart/form-data generation V3
- fix multiple files mode in openApi v3
- feature: Implementing multiple files mode when
options.multipleFileMode=true
- fix: mergining imports (#88)
- fix: null check of swagger.json nodes
- fix: requestParams does not generated isDefinedGenericTypes interfaceTemplate by xxbb #PR86
- feature: use multimatch filter service and method by xxbb #56
- fix uniqueMethodName
- fix: pass format value for modeMode: "interface", which was null #80
- fix OpenApi3_Missing_Property_Types #77
- fix Error: The "path" argument must be of type string. Received type undefined #76
- fix openApi 3.0 Response Type.
- add
option.validationModel
description.
- add
options.generateValidationModel
issue 50 by denis-pujdak-adm-it - fix issue 68
- add Universal Generic TypeDefinition
- add
options.extendDefinitionFile
options.extendGenericType
example
- fix: enum member cannot have numeric value
- fix issue #63. remove special characters of serviceName and fieldName
- fix requestBody in openApi3
- fix #59 empty components in openApi v3.0
- fix request name
- Support OpenApi3.0
-
add docs for the
useClassTransformer
option by arkraft -
fix: useCustomerRequestInstance template by xxbld
-
fix #48 by nbytes
-
Improve request params
-
Ignore generated file with tslint and eslint
-
Improve generic key issue45
-
Remove unused import PR44
- Add
ISwaggerOptions.modelMode
, default isinterface
, it can help us streamline the code generate - Improve code generate size(40%)
-
Add
ISwaggerOptions.strictNullChecks
, default istrue
, it's match with tsconfig.json -
Fix issue 29
- Fix Response type issue 26
- Support typescript strict mode issue 23
- 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