@samchon/openapi
Advanced tools
Comparing version 0.1.22 to 0.1.23-dev.20240626
{ | ||
"name": "@samchon/openapi", | ||
"version": "0.1.22", | ||
"version": "0.1.23-dev.20240626", | ||
"description": "OpenAPI definitions and converters for 'typia' and 'nestia'.", | ||
@@ -32,3 +32,3 @@ "main": "./lib/index.js", | ||
"devDependencies": { | ||
"@nestia/e2e": "^0.4.3", | ||
"@nestia/e2e": "^0.6.0", | ||
"@types/node": "^20.12.7", | ||
@@ -38,5 +38,5 @@ "prettier": "^3.2.5", | ||
"ts-patch": "^3.1.2", | ||
"typescript": "^5.4.3", | ||
"typescript": "5.4.5", | ||
"typescript-transform-paths": "^3.4.7", | ||
"typia": "^6.0.3" | ||
"typia": "^6.2.2" | ||
}, | ||
@@ -43,0 +43,0 @@ "files": [ |
@@ -30,6 +30,6 @@ # `@samchon/openapi` | ||
- Merge `OpenApiV3_1.IPathItem.parameters` to `OpenApi.IOperation.parameters` | ||
- Resolved references of `OpenApiV3_1.IOperation` mebers | ||
- Resolve references of `OpenApiV3_1.IOperation` members | ||
- JSON Schema | ||
- Decompose mixed type: `OpenApiV3_1.IJsonSchema.IMixed` | ||
- Resolved nullable property: `OpenApiV3_1.IJsonSchema.__ISignificant.nullable` | ||
- Resolve nullable property: `OpenApiV3_1.IJsonSchema.__ISignificant.nullable` | ||
- Array type utilizes only single `OpenAPI.IJsonSchema.IArray.items` | ||
@@ -75,2 +75,2 @@ - Tuple type utilizes only `OpenApi.IJsonSchema.ITuple.prefixItems` | ||
- `nestia`: https://github.com/samchon/nestia | ||
- `@nestia/editor`: https://nestia.io/docs/editor | ||
- `@nestia/editor`: https://nestia.io/docs/editor |
@@ -0,1 +1,3 @@ | ||
export * from "./IMigrateOperation"; | ||
export * from "./IMigrationResult"; | ||
export * from "./OpenApi"; | ||
@@ -2,0 +4,0 @@ |
@@ -0,4 +1,6 @@ | ||
import { IMigrationResult } from "./IMigrationResult"; | ||
import { OpenApiV3 } from "./OpenApiV3"; | ||
import { OpenApiV3_1 } from "./OpenApiV3_1"; | ||
import { SwaggerV2 } from "./SwaggerV2"; | ||
import { MigrationConverter } from "./internal/MigrationConverter"; | ||
import { OpenApiV3Converter } from "./internal/OpenApiV3Converter"; | ||
@@ -60,3 +62,3 @@ import { OpenApiV3Downgrader } from "./internal/OpenApiV3Downgrader"; | ||
*/ | ||
export const convert = ( | ||
export function convert( | ||
input: | ||
@@ -67,3 +69,3 @@ | SwaggerV2.IDocument | ||
| OpenApi.IDocument, | ||
): IDocument => { | ||
): IDocument { | ||
if (OpenApiV3_1.is(input)) return OpenApiV3_1Converter.convert(input); | ||
@@ -73,3 +75,3 @@ else if (OpenApiV3.is(input)) return OpenApiV3Converter.convert(input); | ||
throw new TypeError("Unrecognized Swagger/OpenAPI version."); | ||
}; | ||
} | ||
@@ -112,2 +114,6 @@ /** | ||
export function migrate(document: IDocument): IMigrationResult { | ||
return MigrationConverter.convert(document); | ||
} | ||
/* ----------------------------------------------------------- | ||
@@ -114,0 +120,0 @@ PATH ITEMS |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
263182
42
6507
75