@kubb/swagger
Advanced tools
Comparing version 2.1.6 to 2.2.0
@@ -382,10 +382,11 @@ import { getSchemas, isReference, isOpenApiV3Document, convertSwagger2ToOpenApi } from './chunk-ZCIT3DFF.js'; | ||
const property = pathParameters.content?.[contentType]?.schema ?? pathParameters.schema; | ||
const required = [...schema.required || [], pathParameters.required ? pathParameters.name : void 0].filter( | ||
Boolean | ||
); | ||
return { | ||
...schema, | ||
description: pathParameters.description, | ||
pathParameters: pathParameters.deprecated, | ||
example: pathParameters.example, | ||
required: [...schema.required || [], pathParameters.required ? pathParameters.name : void 0].filter( | ||
Boolean | ||
), | ||
description: schema.description, | ||
deprecated: schema.deprecated, | ||
example: schema.example, | ||
required: required.length == 0 ? void 0 : required, | ||
properties: { | ||
@@ -392,0 +393,0 @@ ...schema.properties, |
{ | ||
"name": "@kubb/swagger", | ||
"version": "2.1.6", | ||
"version": "2.2.0", | ||
"description": "Generator swagger", | ||
@@ -62,8 +62,8 @@ "keywords": [ | ||
"swagger2openapi": "^7.0.8", | ||
"@kubb/core": "2.1.6", | ||
"@kubb/react": "2.1.6" | ||
"@kubb/core": "2.2.0", | ||
"@kubb/react": "2.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/js-yaml": "^4.0.9", | ||
"@types/react": "^18.2.46", | ||
"@types/react": "^18.2.47", | ||
"@types/swagger2openapi": "^7.0.4", | ||
@@ -78,3 +78,3 @@ "eslint": "^8.56.0", | ||
"peerDependencies": { | ||
"@kubb/react": "2.1.6" | ||
"@kubb/react": "2.2.0" | ||
}, | ||
@@ -81,0 +81,0 @@ "packageManager": "pnpm@8.3.0", |
@@ -134,12 +134,13 @@ /* eslint-disable @typescript-eslint/unbound-method */ | ||
const property = pathParameters.content?.[contentType]?.schema ?? (pathParameters.schema as OasTypes.SchemaObject) | ||
const required = [...(schema.required || [] as any), pathParameters.required ? pathParameters.name : undefined] | ||
.filter( | ||
Boolean, | ||
) | ||
return { | ||
...schema, | ||
description: pathParameters.description, | ||
pathParameters: pathParameters.deprecated, | ||
example: pathParameters.example, | ||
required: [...(schema.required || [] as any), pathParameters.required ? pathParameters.name : undefined] | ||
.filter( | ||
Boolean, | ||
), | ||
description: schema.description, | ||
deprecated: schema.deprecated, | ||
example: schema.example, | ||
required: required.length == 0 ? undefined : required, | ||
properties: { | ||
@@ -146,0 +147,0 @@ ...schema.properties, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
226511
2831
+ Added@kubb/core@2.2.0(transitive)
+ Added@kubb/parser@2.2.0(transitive)
+ Added@kubb/react@2.2.0(transitive)
+ Added@kubb/types@2.2.0(transitive)
- Removed@kubb/core@2.1.6(transitive)
- Removed@kubb/parser@2.1.6(transitive)
- Removed@kubb/react@2.1.6(transitive)
- Removed@kubb/types@2.1.6(transitive)
Updated@kubb/core@2.2.0
Updated@kubb/react@2.2.0