bin/swagger-spec-validator.js
function getMessages(result) {
  let messages = [];
  if (result.messages) {
    messages = messages.concat(result.messages);
  }
  if (result.schemaValidationMessages) {
    messages = messages.concat(
      result.schemaValidationMessages.map((m) => `${m.level}: ${m.message}`)
    );
  }
  return messages;
}
function getMessages(result) {
  let messages = [];
  if (result.messages) {
    messages = messages.concat(result.messages);
  }
  if (result.schemaValidationMessages) {
    messages = messages.concat(
      result.schemaValidationMessages.map((m) => `${m.level}: ${m.message}`)
    );
  }
  return messages;
}
function getMessages ( result ) { let messages = [ ] ; if ( result . messages ) { messages = messages . concat ( result . messages ) ; } if ( result . schemaValidationMessages ) { messages = messages . concat ( result . schemaValidationMessages . map ( ( m ) => ` ${ m . level } ${ m . message } ` ) ) ; } return messages ; }
Gets validation messages from a validation response object.
@private
Gets validation messages from a validation response object .