5.0.0-beta.0
Pre-release
Pre-release
5.0.0-0 (2020-12-22)
⚠ BREAKING CHANGES
- api-client: generator now ignores bodies for requests that should not send any body, only PUT, PATCH and POST should contain body and it is handled as optional
- generator: if you import
DefaultHttpOptions,HttpOptionsorAPIClientModuleConfigyou need to adjust your imports to file./typesat the top of your "output" path
Features
- api-client: body request based on the request type and the parameter (d0309b0)
- api-client: method params property docs comments (7a1eddf)
- api-client: methods params extracted to separate property in api client interface (53f3015), closes #91
- api-client: observe support for HttpResponse and HttpEvent (cdf2c6d)
- generator: descriptions generated as single/multi line docs comments (96a512d), closes #88
- generator: https protocol preferred if mentioned in schemes (c7f7d6f)
- generator: method parameters args object optional if all of the params are optional (9b77d74), closes #69
- generator: operation summary in descriptions (b573759), closes #112
- generator: option to skip guards (f4cc59f), closes #105
- generator: type interfaces for API client moved to one separate file (f08ffb6)
- generator: united file header (86fd135), closes #108
- guard: check for null at enum guards (14320d5)
- guard: typeof object check for dictionaries of any (4bf917a)
- models: basic object properties as dictionary with key string and value of any (7233c2d)
- models: description comments as docs comments before each property (8c81f6c)
- models: interface properties holding dictionaries and array combinations (e3a33b6)
- models: property name non unicode chars escaped (4dd4089)
Bug Fixes
- api-client: form data not set if undefined (cd541a0)
- generator: default response used if no success code specified (bc316f6)
- generator: service interface imported directly from interface file instead of export index (d768fed)
- guard: dictionaries as interface properties (58b9126)
- guards: any type results in empty guard (83917a9), closes #98
- guards: any used as type of array/object iteration items (ef7be58)