tag:github.com,2008:https://github.com/ProtocolNebula/ts-openapi-generator/releasesRelease notes from ts-openapi-generator2022-08-11T22:11:36Ztag:github.com,2008:Repository/325662926/2.6.02022-08-11T22:13:19Z2.6.0<h3>Breaking Changes</h3>
<ul>
<li>Now uses NodeJS 16.10.X+ (not tested with NodeJS 12.X.X)</li>
</ul>
<h3>Added</h3>
<ul>
<li>GitHub Action to publish automatically in NPM registry after each new release (<a href="https://docs.github.com/en/packages/quickstart#publishing-your-package">https://docs.github.com/en/packages/quickstart#publishing-your-package</a>)</li>
</ul>
<h3>Updates</h3>
<ul>
<li>Updated all depdendencies and devDependencies</li>
<li>Removed unused dependencies (may be re-added in the future)</li>
</ul>ProtocolNebulatag:github.com,2008:Repository/325662926/2.5.42021-02-28T22:56:37Z2.5.4<h3>Added</h3>
<ul>
<li>Added support for response type:<br>
This add new methods to "api model" template:
<ul>
<li>isResponseTypeText</li>
<li>isResponseTypeJson</li>
<li>isResponseTypeXML</li>
<li>isResponseTypeFile</li>
</ul>
</li>
<li><code>API Base</code> (angular 2):
<ul>
<li>Support for "response types" (this fix download files)</li>
</ul>
</li>
</ul>
<h3>Fixed</h3>
<ul>
<li><code>API Base</code> (angular 2):
<ul>
<li>Now <code>false</code> values are sent to Back End, previously was ignored like <code>null</code> and <code>undefined</code>.</li>
</ul>
</li>
</ul>ProtocolNebulatag:github.com,2008:Repository/325662926/2.5.32021-02-21T23:11:13Z2.5.3<h2>[2.5.3] - 2021-02-22</h2>
<h3>Fixed</h3>
<ul>
<li>Fix prebuild fse-remove -> fse remove in package.json</li>
</ul>
<h2>[2.5.2] - 2021-02-22</h2>
<h3>Added</h3>
<ul>
<li>Support for arrays in <code>api</code> responses.</li>
</ul>
<h3>Fixed</h3>
<ul>
<li><code>API Base</code> (angular 2):
<ul>
<li>Added <code>body</code> (data) for <code>patch</code> request</li>
<li>Fix <code>repsonseType</code> type for <code>HttpOptions</code></li>
<li>ModelBase <code>stringfy</code> now return parameters that are <code>false</code></li>
<li>ModelBase parse method fixed</li>
</ul>
</li>
</ul>ProtocolNebulatag:github.com,2008:Repository/325662926/2.5.12021-02-04T20:15:45Z2.5.1<h3>Added</h3>
<ul>
<li>Parser for Components -> Parameters
<ul>
<li>The parameters are added in a new store and are "copied" when are needed in the models or responses.</li>
</ul>
</li>
<li>Added <code>$ref</code> support in the <code>Components</code>
<ul>
<li>As the <a href="https://swagger.io/docs/specification/using-ref/" rel="nofollow">standard specifies</a>, it will COPY the referenced <code>$ref</code> object only changing the <code>model name</code>, so the other attributes are ignored.</li>
</ul>
</li>
</ul>
<h3>Fixed</h3>
<ul>
<li><code>copy-pluggable-files</code> command was broken, so templates were not copied to dist folder</li>
<li>Debugger tasks which call <code>copy-pluggable-files</code></li>
</ul>ProtocolNebulatag:github.com,2008:Repository/325662926/2.5.02021-01-23T12:31:51Z2.5.0<blockquote>
<p>This change add some beta features (but are stable).</p>
</blockquote>
<h3>Added</h3>
<ul>
<li>Engine to generate a <code>mock server</code> (the task is done after write all files).</li>
<li><code>json-server</code> for the <code>mock engine</code> (beta).</li>
<li>Method to resolve "pluggable" elements (<code>resolvePluggablePath</code>).</li>
</ul>
<h3>Changes</h3>
<ul>
<li>Core template paths (default templates) are moved inside <code>src</code> to be coherent with the <code>mock engine</code> and also add native support for TS (future versions).</li>
<li>The "pluggable" folders now are coppied to the <code>build</code> folder to be published within the package, otherwise the <code>templates</code> will be ignored from this version and also the <code>mock assets</code>.</li>
<li>Specify <code>template</code> (and <code>output-folder</code>) is now <strong>optional</strong>, so you can create <code>mocks</code> without generate all files.
<ul>
<li>Also you can simply launch this script to check if the <code>json/yaml</code> document is "well formed" (compatible with the script, there are some missing OpenAPI 3 features not added yet).</li>
</ul>
</li>
<li>Now <code>build</code> folder is empty before each compilation.</li>
</ul>ProtocolNebulatag:github.com,2008:Repository/325662926/2.4.02021-01-18T20:53:09Z2.4.0<blockquote>
<p>This can break your <code>angular 2</code> app, now all APIs require a model instance.<br>
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.</p>
</blockquote>
<h3>Added</h3>
<ul>
<li>Added support for numeric enums</li>
<li>In "api-model":
<ul>
<li>"contentType" (request)</li>
</ul>
</li>
<li>In "model-attributes" model:
<ul>
<li>isTypePrimitive</li>
<li>isNotPrimitive</li>
</ul>
</li>
</ul>
<h3>Changes</h3>
<ul>
<li><code>API Base</code> (angular 2):
<ul>
<li>You can add to your angular without doing changes</li>
<li>Removed all store dependences</li>
<li>Removed handle error</li>
</ul>
</li>
<li><code>Angular 2</code> template:
<ul>
<li>Added "model-base" which are extended by all generated models to parse/stringfy models</li>
<li>Added "mapping" to all API responses (with model-base)</li>
</ul>
</li>
</ul>ProtocolNebulatag:github.com,2008:Repository/325662926/2.3.32021-01-11T19:49:21Z2.3.3<h3>Added</h3>
<ul>
<li>Support for https remote files</li>
<li>Added <strong>but not used</strong> <a href="https://github.com/Mermade/oas-kit/">swagger2openapi</a> to future validations (and first method to convert Swagger 2 to OpenAPI V3 with this library)</li>
<li>Support for <code>Swagger 1</code> and <code>Swagger 2 (Open API)</code> files (using <a href="https://github.com/LucyBot-Inc/api-spec-converter">api-spec-converter</a> which converts the file to <code>OpenAPI V3</code>.</li>
</ul>
<h3>Changed</h3>
<ul>
<li>APIs: If no <code>tags</code> provided, the URL is split and used as <code>tags</code>.</li>
</ul>ProtocolNebulatag:github.com,2008:Repository/325662926/2.3.22021-01-09T19:04:59Z2.3.2<h3>Added</h3>
<ul>
<li>Parameter to choose where to save the <code>open api (swagger) file</code> if <code>--file</code> is an <code>URL</code>. Default path is <code>./open-api</code> (.json/.yaml added automatically).</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Now "properties" inside "properties" inside "schema" are transformed to an object, previously was <code>any</code>.</li>
</ul>ProtocolNebulatag:github.com,2008:Repository/325662926/2.3.12021-01-09T18:59:11Z2.3.1<h3>Added</h3>
<ul>
<li>Parameter to choose where to save the <code>open api (swagger) file</code> if <code>--file</code> is an <code>URL</code>. Default path is <code>./open-api</code> (.json/.yaml added automatically).</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Now "properties" inside "properties" inside "schema" are transformed to an object, previously was <code>any</code>.</li>
</ul>ProtocolNebulatag:github.com,2008:Repository/325662926/2.3.02021-01-07T21:13:31Z2.3.0<h3>Added</h3>
<ul>
<li>Issue <a href="https://github.com/ProtocolNebula/ts-openapi-generator/issues/12" data-hovercard-type="issue" data-hovercard-url="/ProtocolNebula/ts-openapi-generator/issues/12/hovercard">#12 - Support for multi array in api schemes</a></li>
<li>JSON example</li>
<li><code>Angular 2</code> generated example (partial, not all files are uploaded)</li>
</ul>
<h3>Changed</h3>
<ul>
<li>Now <code>generated</code> folder is no created anymore.</li>
</ul>
<blockquote>
<p>Please update your repositories or your "output" folder will be cleared on the next execution.<br>
You have to specify explicity <code>generated</code> folder or your desired one.</p>
</blockquote>
<h3>Fixed</h3>
<ul>
<li>Fix "Capitalize" on api's (it was creating files and classes with spaces)</li>
</ul>ProtocolNebula