src/normalize-model-and-view.js
function expandModel (model, view) {
  const modelPath = new BunsenModelPath(model)
  const modelExpansions = aggregateModels(view, modelPath)
  let newModel = model
  _.forEach(modelExpansions, (propertyModel, path) => {
    newModel = addBunsenModelProperty(newModel, propertyModel, path)
  })
  return newModel
}
function expandModel (model, view) {
  const modelPath = new BunsenModelPath(model)
  const modelExpansions = aggregateModels(view, modelPath)
  let newModel = model
  _.forEach(modelExpansions, (propertyModel, path) => {
    newModel = addBunsenModelProperty(newModel, propertyModel, path)
  })
  return newModel
}
function expandModel ( model , view ) { const modelPath = new BunsenModelPath ( model ) const modelExpansions = aggregateModels ( view , modelPath ) let newModel = model _ . forEach ( modelExpansions , ( propertyModel , path ) => { newModel = addBunsenModelProperty ( newModel , propertyModel , path ) } ) return newModel }
Adds to an existing bunsen model with schemas defined in the view

@param {BunsenModel} model Model to expand
@param {BunsenView} view View containing additional schema
@returns {BunsenModel} Expanded version of the model
Adds to an existing bunsen model with schemas defined in the view