Releases: ProtocolNebula/ts-openapi-generator
Releases · ProtocolNebula/ts-openapi-generator
2.6.0
Breaking Changes
- Now uses NodeJS 16.10.X+ (not tested with NodeJS 12.X.X)
Added
- GitHub Action to publish automatically in NPM registry after each new release (https://docs.github.com/en/packages/quickstart#publishing-your-package)
Updates
- Updated all depdendencies and devDependencies
- Removed unused dependencies (may be re-added in the future)
2.5.4
Added
- Added support for response type:
This add new methods to "api model" template:- isResponseTypeText
- isResponseTypeJson
- isResponseTypeXML
- isResponseTypeFile
API Base
(angular 2):- Support for "response types" (this fix download files)
Fixed
API Base
(angular 2):- Now
false
values are sent to Back End, previously was ignored likenull
andundefined
.
- Now
2.5.3
[2.5.3] - 2021-02-22
Fixed
- Fix prebuild fse-remove -> fse remove in package.json
[2.5.2] - 2021-02-22
Added
- Support for arrays in
api
responses.
Fixed
API Base
(angular 2):- Added
body
(data) forpatch
request - Fix
repsonseType
type forHttpOptions
- ModelBase
stringfy
now return parameters that arefalse
- ModelBase parse method fixed
- Added
2.5.1
Added
- Parser for Components -> Parameters
- The parameters are added in a new store and are "copied" when are needed in the models or responses.
- Added
$ref
support in theComponents
- As the standard specifies, it will COPY the referenced
$ref
object only changing themodel name
, so the other attributes are ignored.
- As the standard specifies, it will COPY the referenced
Fixed
copy-pluggable-files
command was broken, so templates were not copied to dist folder- Debugger tasks which call
copy-pluggable-files
2.5.0
This change add some beta features (but are stable).
Added
- Engine to generate a
mock server
(the task is done after write all files). json-server
for themock engine
(beta).- Method to resolve "pluggable" elements (
resolvePluggablePath
).
Changes
- Core template paths (default templates) are moved inside
src
to be coherent with themock engine
and also add native support for TS (future versions). - The "pluggable" folders now are coppied to the
build
folder to be published within the package, otherwise thetemplates
will be ignored from this version and also themock assets
. - Specify
template
(andoutput-folder
) is now optional, so you can createmocks
without generate all files.- Also you can simply launch this script to check if the
json/yaml
document is "well formed" (compatible with the script, there are some missing OpenAPI 3 features not added yet).
- Also you can simply launch this script to check if the
- Now
build
folder is empty before each compilation.
2.4.0
This can break your
angular 2
app, now all APIs require a model instance.
Also returns an instance, this can be a big break change, please test your app after the build (in another branch) and fix all manually.
Added
- Added support for numeric enums
- In "api-model":
- "contentType" (request)
- In "model-attributes" model:
- isTypePrimitive
- isNotPrimitive
Changes
API Base
(angular 2):- You can add to your angular without doing changes
- Removed all store dependences
- Removed handle error
Angular 2
template:- Added "model-base" which are extended by all generated models to parse/stringfy models
- Added "mapping" to all API responses (with model-base)
2.3.3
Added
- Support for https remote files
- Added but not used swagger2openapi to future validations (and first method to convert Swagger 2 to OpenAPI V3 with this library)
- Support for
Swagger 1
andSwagger 2 (Open API)
files (using api-spec-converter which converts the file toOpenAPI V3
.
Changed
- APIs: If no
tags
provided, the URL is split and used astags
.
2.3.2
Added
- Parameter to choose where to save the
open api (swagger) file
if--file
is anURL
. Default path is./open-api
(.json/.yaml added automatically).
Fixed
- Now "properties" inside "properties" inside "schema" are transformed to an object, previously was
any
.
2.3.1
Added
- Parameter to choose where to save the
open api (swagger) file
if--file
is anURL
. Default path is./open-api
(.json/.yaml added automatically).
Fixed
- Now "properties" inside "properties" inside "schema" are transformed to an object, previously was
any
.
2.3.0
Added
- Issue #12 - Support for multi array in api schemes
- JSON example
Angular 2
generated example (partial, not all files are uploaded)
Changed
- Now
generated
folder is no created anymore.
Please update your repositories or your "output" folder will be cleared on the next execution.
You have to specify explicitygenerated
folder or your desired one.
Fixed
- Fix "Capitalize" on api's (it was creating files and classes with spaces)