Skip to content

v0.2.0 ReadModeMapInputOnly

Choose a tag to compare

@kzoltner kzoltner released this 13 Feb 18:07
· 19 commits to main since this release
Immutable release. Only release title and notes can be modified.

v0.2.0 - new ReadMode and minor fixes

Breaking changes:

  • Replaced WithNewDefaults() with WithMapInput() and changed its behaviour:
    Instead of replacing the defaults itself (and having env/yaml be applied after) the map input is applied after reading
    the defaults and env/yaml are not used. WithMapInput() is coupled to ReadModeMapInputOnly.

Other changes:

  • fixed empty env not defaulting to field.Name
  • stricter checks to prevent inputs that are not used for yaml file and map input
  • allow req and required for required tag - req > required