Skip to content

Commit

Permalink
fix(ns-openapi-2): add support for JSONReferenceElement (#3283)
Browse files Browse the repository at this point in the history
Refs #3097
  • Loading branch information
char0n committed Oct 17, 2023
1 parent d658721 commit b6e6d59
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 61 deletions.
61 changes: 3 additions & 58 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/apidom-ns-openapi-2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions packages/apidom-ns-openapi-2/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
1 change: 1 addition & 0 deletions packages/apidom-ns-openapi-2/src/traversal/visitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const keyMap = {
HeaderElement: ['content'],
TagElement: ['content'],
ReferenceElement: ['content'],
JSONReferenceElement: ['content'],
SchemaElement: ['content'],
XmlElement: ['content'],
SecurityDefinitionsElement: ['content'],
Expand Down

0 comments on commit b6e6d59

Please sign in to comment.