diff --git a/package-lock.json b/package-lock.json index 0ae731f710..5366958a1d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32449,70 +32449,15 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime-corejs3": "^7.20.7", - "@swagger-api/apidom-core": "^0.77.0", - "@swagger-api/apidom-error": "^0.77.0", - "@swagger-api/apidom-ns-json-schema-draft-4": "^0.77.0", + "@swagger-api/apidom-core": "^0.78.0", + "@swagger-api/apidom-error": "^0.78.0", + "@swagger-api/apidom-ns-json-schema-draft-4": "^0.78.0", "@types/ramda": "~0.29.6", "ramda": "~0.29.0", "ramda-adjunct": "^4.1.1", "stampit": "^4.3.2" } }, - "packages/apidom-ns-openapi-2/node_modules/@swagger-api/apidom-ast": { - "version": "0.77.0", - "resolved": "https://registry.npmjs.org/@swagger-api/apidom-ast/-/apidom-ast-0.77.0.tgz", - "integrity": "sha512-BqYc3oZEJ23x9KlamGjNbIymhKId0qxcqykjet7fO3NWm1c68ix/S+VgheTKig8Gl4IJ2lT+Cz3C178ia90ydQ==", - "dependencies": { - "@babel/runtime-corejs3": "^7.20.7", - "@swagger-api/apidom-error": "^0.77.0", - "@types/ramda": "~0.29.3", - "ramda": "~0.29.0", - "ramda-adjunct": "^4.1.1", - "stampit": "^4.3.2", - "unraw": "^3.0.0" - } - }, - "packages/apidom-ns-openapi-2/node_modules/@swagger-api/apidom-core": { - "version": "0.77.0", - "resolved": "https://registry.npmjs.org/@swagger-api/apidom-core/-/apidom-core-0.77.0.tgz", - "integrity": "sha512-Yec/Ek6tH8uaHpFsL8/KfOjkunUdQOf42467QfAkG4Df1u9fdrBIuk8y6oFOO5KAE4WXNjoOQW+Z865WCMwmkA==", - "dependencies": { - "@babel/runtime-corejs3": "^7.20.7", - "@swagger-api/apidom-ast": "^0.77.0", - "@swagger-api/apidom-error": "^0.77.0", - "@types/ramda": "~0.29.3", - "minim": "~0.23.8", - "ramda": "~0.29.0", - "ramda-adjunct": "^4.1.1", - "short-unique-id": "^5.0.2", - "stampit": "^4.3.2" - } - }, - "packages/apidom-ns-openapi-2/node_modules/@swagger-api/apidom-error": { - "version": "0.77.0", - "resolved": "https://registry.npmjs.org/@swagger-api/apidom-error/-/apidom-error-0.77.0.tgz", - "integrity": "sha512-7QQPwUdGAxxvAegJntbzuBD0ApPsdMay6nV3UpxQs/F4q4cTaxeTX8HCp2NefXR4B6VHps0oVvIyXf/LDQUtYw==", - "dependencies": { - "@babel/runtime-corejs3": "^7.20.7", - "@types/ramda": "~0.29.3", - "ramda": "~0.29.0", - "ramda-adjunct": "^4.0.0" - } - }, - "packages/apidom-ns-openapi-2/node_modules/@swagger-api/apidom-ns-json-schema-draft-4": { - "version": "0.77.0", - "resolved": "https://registry.npmjs.org/@swagger-api/apidom-ns-json-schema-draft-4/-/apidom-ns-json-schema-draft-4-0.77.0.tgz", - "integrity": "sha512-LLfNNDuoLNgKgN8ddPJxc5QCYgst3G1BnXEU+0lIFyVlFb5xowZiW4utYtfx/eRBy+UxpgTIk04hvvbaYppFZQ==", - "dependencies": { - "@babel/runtime-corejs3": "^7.20.7", - "@swagger-api/apidom-ast": "^0.77.0", - "@swagger-api/apidom-core": "^0.77.0", - "@types/ramda": "~0.29.3", - "ramda": "~0.29.0", - "ramda-adjunct": "^4.1.1", - "stampit": "^4.3.2" - } - }, "packages/apidom-ns-openapi-3-0": { "name": "@swagger-api/apidom-ns-openapi-3-0", "version": "0.78.0", diff --git a/packages/apidom-ns-openapi-2/package.json b/packages/apidom-ns-openapi-2/package.json index 5f0d54c4c6..cccf82a46a 100644 --- a/packages/apidom-ns-openapi-2/package.json +++ b/packages/apidom-ns-openapi-2/package.json @@ -43,9 +43,9 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime-corejs3": "^7.20.7", - "@swagger-api/apidom-core": "^0.77.0", - "@swagger-api/apidom-error": "^0.77.0", - "@swagger-api/apidom-ns-json-schema-draft-4": "^0.77.0", + "@swagger-api/apidom-core": "^0.78.0", + "@swagger-api/apidom-error": "^0.78.0", + "@swagger-api/apidom-ns-json-schema-draft-4": "^0.78.0", "@types/ramda": "~0.29.6", "ramda": "~0.29.0", "ramda-adjunct": "^4.1.1", diff --git a/packages/apidom-ns-openapi-2/src/index.ts b/packages/apidom-ns-openapi-2/src/index.ts index 99920678b6..c28f1b60f1 100644 --- a/packages/apidom-ns-openapi-2/src/index.ts +++ b/packages/apidom-ns-openapi-2/src/index.ts @@ -10,6 +10,10 @@ export { isNumberElement, isStringElement, } from '@swagger-api/apidom-core'; +export { + isJSONReferenceElement, + JSONReferenceElement, +} from '@swagger-api/apidom-ns-json-schema-draft-4'; export { default as mediaTypes, OpenAPIMediaTypes } from './media-types'; diff --git a/packages/apidom-ns-openapi-2/src/traversal/visitor.ts b/packages/apidom-ns-openapi-2/src/traversal/visitor.ts index 9ac0308b4f..66a197d140 100644 --- a/packages/apidom-ns-openapi-2/src/traversal/visitor.ts +++ b/packages/apidom-ns-openapi-2/src/traversal/visitor.ts @@ -30,6 +30,7 @@ export const keyMap = { HeaderElement: ['content'], TagElement: ['content'], ReferenceElement: ['content'], + JSONReferenceElement: ['content'], SchemaElement: ['content'], XmlElement: ['content'], SecurityDefinitionsElement: ['content'],