Skip to content

Config option to not override with empty values #5

@sigurdblueface

Description

@sigurdblueface

Describe the feature request

so imagine we have a 'base' yaml file

app:
  name: base
  vault: 
    url: url
    path: path

we have an 'override' yaml file

app:
  name: api
  vault: {}

we're unmarshalling these into map[string]interface{}

on merge

err = deepmerge.DeepMerge(<map with base app>, <map with override app>, mergeConfig)
if err != nil {
  return err
}

we have as a result:

app:
  name: api
  vault: {}

it seems pretty logical indeed, but It would be great to have that behaviour configurable.

Why do you personally want this feature to be implemented?

in order not to write omitempty to every yaml structure

How long have you been using this project?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions