All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.es.traversal.visitor.mjs Maven / Gradle / Ivy

There is a newer version: 0.99.2
Show newest version
import { keyMap as keyMapBase, isElement } from '@swagger-api/apidom-core';

// getNodeType :: Node -> String
export const getNodeType = element => {
  if (!isElement(element)) {
    return undefined;
  }
  return `${element.element.charAt(0).toUpperCase() + element.element.slice(1)}Element`;
};
export const keyMap = {
  JSONSchemaDraft7Element: ['content'],
  JSONReferenceElement: ['content'],
  LinkDescriptionElement: ['content'],
  ...keyMapBase
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy