function validateDeleteNoBody(action) {
    for (const transaction of action.transactions || []) {
      if (lodash.get(transaction, 'request.method', '').toValue().toLocaleLowerCase() === 'delete' && lodash.get(transaction, 'request.messageBody')) {
        return 'DELETE request must not have a body.';
      }
    }
    return true;
  }
/*
    Validates that a delete does not have a body associated with it

  @targets: Action
  @minim: true
  */
Validates that a delete does not have a body associated with it
Validates that a delete does not have a body associated with it
function validateDeleteNoBody(action) {
    for (const transaction of action.transactions || []) {
      if (lodash.get(transaction, 'request.method', '').toValue().toLocaleLowerCase() === 'delete' && lodash.get(transaction, 'request.messageBody')) {
        return 'DELETE request must not have a body.';
      }
    }
    return true;
  }
function validateDeleteNoBody ( action ) { for ( const transaction of action . transactions || [ ] ) { if ( lodash . get ( transaction , 'request.method' , '' ) . toValue ( ) . toLocaleLowerCase ( ) === 'delete' && lodash . get ( transaction , 'request.messageBody' ) ) { return 'DELETE request must not have a body.' ; } } return true ; }
Validates that a delete does not have a body associated with it
Validates that a delete does not have a body associated with it