lib/exceptions/option_validator.js
function checkOptions(
  { jdlObject, applicationSettings, applicationsPerEntityName } = {
    applicationSettings: {},
    applicationsPerEntityName: {}
  }
) {
  if (!jdlObject) {
    throw new Error('A JDL object has to be passed to check its options.');
  }
  configuration = {
    jdlObject,
    applicationSettings,
    applicationsPerEntityName
  };
  jdlObject.getOptions().forEach(option => {
    checkOption(option);
  });
}
function checkOptions(
  { jdlObject, applicationSettings, applicationsPerEntityName } = {
    applicationSettings: {},
    applicationsPerEntityName: {}
  }
) {
  if (!jdlObject) {
    throw new Error('A JDL object has to be passed to check its options.');
  }
  configuration = {
    jdlObject,
    applicationSettings,
    applicationsPerEntityName
  };
  jdlObject.getOptions().forEach(option => {
    checkOption(option);
  });
}
function checkOptions ( { jdlObject , applicationSettings , applicationsPerEntityName } = { applicationSettings : { } , applicationsPerEntityName : { } } ) { if ( ! jdlObject ) { throw new Error ( 'A JDL object has to be passed to check its options.' ) ; } configuration = { jdlObject , applicationSettings , applicationsPerEntityName } ; jdlObject . getOptions ( ) . forEach ( option => { checkOption ( option ) ; } ) ; }
Checks whether the passed JDL options are valid.
@param jdlObject the JDL object containing the options to check.
@param applicationSettings the application configuration.
@param applicationsPerEntityName applications per entity entity name.
Checks whether the passed JDL options are valid .