src/dt2js.js
function getRAMLContext (ramlData, rootFileDir) {
  rootFileDir = rootFileDir || '.'
  const ast = yap.load(ramlData)
  const libraries = extractLibraries(ast, rootFileDir)
  const jsContent = {}
  traverse(jsContent, ast, rootFileDir, libraries)
  return jsContent.types
}
function getRAMLContext (ramlData, rootFileDir) {
  rootFileDir = rootFileDir || '.'
  const ast = yap.load(ramlData)
  const libraries = extractLibraries(ast, rootFileDir)
  const jsContent = {}
  traverse(jsContent, ast, rootFileDir, libraries)
  return jsContent.types
}
function getRAMLContext ( ramlData , rootFileDir ) { rootFileDir = rootFileDir || '.' const ast = yap . load ( ramlData ) const libraries = extractLibraries ( ast , rootFileDir ) const jsContent = { } traverse ( jsContent , ast , rootFileDir , libraries ) return jsContent . types }
Get RAML Data Types context.

@param  {string} ramlData - RAML file content.
@param  {string} rootFileDir - RAML file directory.
@returns  {Object} - RAML data types context.
Get RAML Data Types context .