Releases: acacode/swagger-typescript-api
Releases · acacode/swagger-typescript-api
9.2.0 Release
Features:
- full response typing for status code, data and headers. (#272, thanks @rustyconover)
- --unwrap-response-data to unwrap the data item from the response (#268, thanks @laktak)
Fixes:
- fix: formdata in axios template (#277, thanks @tiagoskaneta)
9.1.2 Release
Fixes:
- Bug with --single-http-client and private
http
property
9.1.1 Release
Fixes:
- Critical bug linked with
templateRequire
in ETA templates - Critical bugs linked with
--type-prefix
,--type-suffix
- Bug with nested objects in FormData (issue #262, thanks @avlnche64)
Internal:
- Improve manual testing scripts
9.0.2 Release
Fixes:
- 9.0.1 won't build with tsc when imported (thanks @mastermatt)
9.0.1 Release
Fixes:
- Can't compile 9.0.0 version (thanks @Nihisil )
9.0.0 Release
NOTE: This version is not compatible with previous templates (removed route.request.params
, apiConfig.props
, apiConfig.generic
, apiConfig.description
, apiConfig.hasDescription
)
Fixes:
- Consider 2xx a successful status (thanks @wyozi)
- GET method query option bug (thanks @rhkdgns95, @SaschaGalley)
silent
property missed in.d.ts
file (thanks @mastermatt)- axios file upload
formData
type (thanks @guhyeon) - make property
instance
to public in axios http client (It can be helpful in #226) - variable name "params" doesn't uniq (thanks @mixalbl4-127 )
Features:
8.0.3 Release
- Fixes encoding array query params in
fetch
http templates (thanks @prog13)
8.0.2 Release
Fixes:
- Wrong working the
format
option infetch
http client
8.0.1 Release
Fixes:
- Not working
customFetch
Error:Failed to execute 'fetch' on 'Window': Illegal invocation
8.0.0 Release
BREAKING_CHANGES:
- remove default
json
format of the response type (both foraxios
andfetch
http clients) (issue #213, thanks @po5i)
Features:
- Allow passing custom fetch function (
fetch
http client only) - Allow to set global response type format through
HttpClient
constructor
Example:
const httpClient = new HttpClient({ format: 'json' });
// all request responses will been formatted as json
Fixes:
- Missing
schema.$ref
in inline enum schemas - Array query param values are serialized with the (non-default) comma separated style (issue #222, thanks @Styn, PR #223)
- TypeScript error "TS6133: 'E' is declared but its value is never read." (
axios
http client) (issue #220, thanks @pmbednarczyk )