text: import Chance from 'chance';
  const chance = new Chance();
  
  export default class AllOfParser {
      constructor(parser) {
          this.parser = parser;
      }
  
      canParse(node) {
          return !!node.allOf;
      }
  
      parse(node) {
          return this.generateObject(node);
      }
  
      generateObject(node) {
          return node.allOf
              .reduce((s, o) => Object.assign(s, this.parser.parse(o)), {});
      }
  }