Releases: Kangaroux/go-map-schema
Releases · Kangaroux/go-map-schema
v0.6.1
- Fixed
CompareResults.Errors()
not reporting nested type errors correctly
v0.6.0
- Added support for nested structs (#4, thank you @Quanare)
v0.5.0
- Replaced
AsMap()
with Errors()
which now returns an error type, and also returns nil if there are no errors
- Updated documentation and added examples
v0.4.0
- Renamed
TypeNameDetailed
and TypeNameSimple
to DetailedTypeName
and SimpleTypeName
.
- Fixed a potential panic error
- Added some lang tests
v0.3.0
- Added
CompareResults.AsMap()
method, which returns a map of field names to mismatch errors.
- Updated
FieldMismatch.String()
to correctly say things like "is an int" or "is null" instead of "is a int" and "is a null".
v0.2.0
- Added a type mismatch when converting from a
float
-> int
if the float
is not a whole number.
- Added a
CompareOpts
type. This can be used to control how type names are reported for mismatches, as well as determining if two types are convertible.
- Added a
TypeNameSimple
func, which returns type names without the bit size (for int
, uint
, and float
types). This is used with CompareOpts
.