@openapi-contrib/json-schema-to-openapi-schema
Advanced tools
Comparing version 2.2.3 to 2.2.4
import type { JSONSchema } from '@apidevtools/json-schema-ref-parser'; | ||
import type { Options } from './types'; | ||
import type { Options } from './types.js'; | ||
import type { OpenAPIV3 } from 'openapi-types'; | ||
declare const convert: <T = JSONSchema>(schema: T, options?: Options) => Promise<OpenAPIV3.Document>; | ||
declare const convert: <T extends JSONSchema = JSONSchema>(schema: T, options?: Options) => Promise<OpenAPIV3.Document>; | ||
export default convert; |
import type { JSONSchema } from '@apidevtools/json-schema-ref-parser'; | ||
import type { Options } from './types'; | ||
import type { Options } from './types.js'; | ||
import type { OpenAPIV3 } from 'openapi-types'; | ||
declare const convert: <T = JSONSchema>(schema: T, options?: Options) => Promise<OpenAPIV3.Document>; | ||
declare const convert: <T extends JSONSchema = JSONSchema>(schema: T, options?: Options) => Promise<OpenAPIV3.Document>; | ||
export default convert; |
{ | ||
"name": "@openapi-contrib/json-schema-to-openapi-schema", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"description": "Converts a JSON Schema to OpenAPI Schema Object", | ||
@@ -38,12 +38,12 @@ "bin": { | ||
"@apidevtools/json-schema-ref-parser": "^9.0.9", | ||
"json-schema-walker": "^0.0.4", | ||
"openapi-types": "^12.0.0", | ||
"yargs": "^17.5.1" | ||
"json-schema-walker": "^1.1.0", | ||
"openapi-types": "^12.0.2", | ||
"yargs": "^17.6.2" | ||
}, | ||
"devDependencies": { | ||
"@types/json-schema": "^7.0.11", | ||
"@typescript-eslint/eslint-plugin": "^5.32.0", | ||
"@typescript-eslint/parser": "^5.32.0", | ||
"@typescript-eslint/eslint-plugin": "^5.42.0", | ||
"@typescript-eslint/parser": "^5.42.0", | ||
"c8": "^7.12.0", | ||
"eslint": "^8.21.0", | ||
"eslint": "^8.27.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
@@ -54,4 +54,4 @@ "eslint-plugin-prettier": "^4.2.1", | ||
"prettier": "^2.7.1", | ||
"typescript": "^4.7.4", | ||
"vitest": "^0.21.0" | ||
"typescript": "^4.8.4", | ||
"vitest": "^0.24.5" | ||
}, | ||
@@ -58,0 +58,0 @@ "prettier": { |
49506
+ Addedjson-schema-walker@1.1.0(transitive)
- Removedjson-schema-walker@0.0.4(transitive)
Updatedjson-schema-walker@^1.1.0
Updatedopenapi-types@^12.0.2
Updatedyargs@^17.6.2