package.cjs.traversal.visitor.cjs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apidom-ns-json-schema-draft-7 Show documentation
Show all versions of apidom-ns-json-schema-draft-7 Show documentation
JSON Schema Draft 7 namespace for ApiDOM.
"use strict";
exports.__esModule = true;
exports.keyMap = exports.getNodeType = void 0;
var _apidomCore = require("@swagger-api/apidom-core");
// getNodeType :: Node -> String
const getNodeType = element => {
if (!(0, _apidomCore.isElement)(element)) {
return undefined;
}
return `${element.element.charAt(0).toUpperCase() + element.element.slice(1)}Element`;
};
exports.getNodeType = getNodeType;
const keyMap = exports.keyMap = {
JSONSchemaDraft7Element: ['content'],
JSONReferenceElement: ['content'],
LinkDescriptionElement: ['content'],
..._apidomCore.keyMap
};