ts-openapi-codegen 0.2.0-beta → 0.2.1-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.2.1-beta] - 2022-01-15
9
+
10
+ ### Fixed
11
+
12
+ - Bug with an incorrect paths in a generator input parameters
13
+
8
14
  ## [0.2.0-beta] - 2021-12-13
9
15
 
10
16
  ### Added
package/bin/index.js CHANGED
@@ -119,7 +119,7 @@ if (OpenAPI) {
119
119
  if (fs.existsSync(configFile)) {
120
120
  const dataString = fs.readFileSync(configFile, { encoding: `UTF-8` });
121
121
  const configs = isValidJson(dataString) ? JSON.parse(dataString) : [];
122
- let operations = Array.isArray(configs) ? Array.of(prepareOptions(configs)) : prepareOptions(configs.items, prepareRootOptions(configs));
122
+ let operations = Array.isArray(configs) ? prepareOptions(configs) : prepareOptions(configs.items, prepareRootOptions(configs));
123
123
  generate(operations);
124
124
  } else {
125
125
  generate(prepareOptions(params));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-openapi-codegen",
3
- "version": "0.2.0-beta",
3
+ "version": "0.2.1-beta",
4
4
  "description": "Library that generates Typescript clients based on the OpenAPI specification. It bases on openapi-typescript-codegen",
5
5
  "author": "Alexey Zverev",
6
6
  "homepage": "https://github.com/ozonophore/openapi-codegen.git",