src/js2dt.js
function js2dt (jsonData, typeName) {
  const data = JSON.parse(jsonData)

  const raml = new RamlConverter(data, typeName).toRaml()

  return raml
}
function js2dt (jsonData, typeName) {
  const data = JSON.parse(jsonData)

  const raml = new RamlConverter(data, typeName).toRaml()

  return raml
}
function js2dt ( jsonData , typeName ) { const data = JSON . parse ( jsonData ) const raml = new RamlConverter ( data , typeName ) . toRaml ( ) return raml }
Convert JSON schema to RAML data type.

@param  {string} jsonData - JSON file content.
@param  {string} typeName - Name of RAML data type to hold converted data.
Convert JSON schema to RAML data type .