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

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

The newest version!
import { isElement, keyMap as keyMapBase } 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 = {
  /**
   * API Design Systems 2021-05-07 specification elements.
   */
  MainElement: ['content'],
  InfoElement: ['content'],
  PrincipleElement: ['content'],
  StandardElement: ['content'],
  ScenarioElement: ['content'],
  RequirementElement: ['content'],
  StandardIdentifierElement: ['content'],
  RequirementLevelElement: [],
  ...keyMapBase
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy