Releases: romshark/yamagiconf
Releases · romshark/yamagiconf
v0.10.5
v0.10.4
v0.10.3
- a37a3c3 fix: Exported struct fields are now properly validated even if the struct implements
encoding.TextUnmarshaler
. - aaca598 fix:
Load
andLoadFile
no longer panic when invokingValidate
onencoding.TextUnmarshaler
interface implementations. - 64d972c fix:
Load
andLoadFile
now return a new errorErrYAMLNonStrOnTextUnmarsh
when a non-string YAML value is assigned to a Go type that implementsencoding.TextUnmarshaler
.
v0.10.2
v0.10.1
v0.10.0
v0.9.0
- d421bcb !feat: Anchors with implicit zero value such as
foo: &bar
are no longer allowed and will returnErrYAMLAnchorNoValue
. Use explicit zero value such asfoo: &bar ''
. - 08354a0 fix: No panic when aliasing a composite value (such as an array) any more.
- b7210b9 fix:
ErrBadBoolLiteral
is no longer returned for aliases.
v0.8.0
v0.7.0
v0.6.1
- f6b28cd fix:
Load
andLoadFile
will now return error forenv
tag on a field of a primitive named type that implements theyaml.Unmarshaler
interface because for a type liketype MyString string
that implementsyaml.Unmarshaler
env unmarshaling will just copy the env value to the underlying string potentially bypassing any validation logic that might have been defined inUnmarshalYAML
. Therefore it's safer to useencoding.TextUnmarshaler
instead since it's supported by both the env and the yaml parsers.