Skip to content

Releases: Kangaroux/go-map-schema

v0.6.1

07 Jun 02:25

Choose a tag to compare

  • Fixed CompareResults.Errors() not reporting nested type errors correctly

v0.6.0

06 Jun 21:28
8df8d10

Choose a tag to compare

  • Added support for nested structs (#4, thank you @Quanare)

v0.5.0

25 May 23:18

Choose a tag to compare

  • 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

21 May 15:26

Choose a tag to compare

  • Renamed TypeNameDetailed and TypeNameSimple to DetailedTypeName and SimpleTypeName.
  • Fixed a potential panic error
  • Added some lang tests

v0.3.0

21 May 14:56

Choose a tag to compare

  • 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

20 May 18:13

Choose a tag to compare

  • 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.

v0.1.0 Initial Release

20 May 14:05

Choose a tag to compare

Initial release