Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@samchon/openapi

Package Overview
Dependencies
Maintainers
0
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@samchon/openapi - npm Package Compare versions

Comparing version 0.1.22 to 0.1.23-dev.20240626

src/IMigrateOperation.ts

8

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc