@kubb/swagger-ts 2.0.0-beta.5 → 2.0.0-beta.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/swagger-ts",
3
- "version": "2.0.0-beta.5",
3
+ "version": "2.0.0-beta.6",
4
4
  "description": "Generator swagger-ts",
5
5
  "keywords": [
6
6
  "typescript",
@@ -44,10 +44,10 @@
44
44
  ],
45
45
  "dependencies": {
46
46
  "typescript": "^5.3.2",
47
- "@kubb/core": "2.0.0-beta.5",
48
- "@kubb/parser": "2.0.0-beta.5",
49
- "@kubb/react": "2.0.0-beta.5",
50
- "@kubb/swagger": "2.0.0-beta.5"
47
+ "@kubb/core": "2.0.0-beta.6",
48
+ "@kubb/parser": "2.0.0-beta.6",
49
+ "@kubb/react": "2.0.0-beta.6",
50
+ "@kubb/swagger": "2.0.0-beta.6"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/react": "^18.2.38",
@@ -60,7 +60,7 @@
60
60
  },
61
61
  "peerDependencies": {
62
62
  "typescript": "^5.3.0",
63
- "@kubb/react": "2.0.0-beta.5"
63
+ "@kubb/react": "2.0.0-beta.6"
64
64
  },
65
65
  "packageManager": "pnpm@8.3.0",
66
66
  "engines": {
@@ -358,6 +358,7 @@ export class TypeGenerator extends Generator<PluginOptions['resolvedOptions'], C
358
358
 
359
359
  if (schema.type) {
360
360
  if (Array.isArray(schema.type)) {
361
+ // TODO remove hardcoded first type, second nullable
361
362
  // OPENAPI v3.1.0: https://www.openapis.org/blog/2021/02/16/migrating-from-openapi-3-0-to-3-1-0
362
363
  const [type, nullable] = schema.type as Array<OpenAPIV3_1.NonArraySchemaObjectType>
363
364