Skip to content
This repository was archived by the owner on Jul 8, 2020. It is now read-only.

Releases: Blacksmoke16/CrSerializer

Some Bug Fixes

07 Feb 02:30

Choose a tag to compare

Bug Fixes

  • Fix issue with exclusion policies and IgnoreOn* annotations #19
  • Fix issue with serializing ReadOnly properties 65c527c

Refactor

15 Jan 01:59
78accd8

Choose a tag to compare

  • Refactors the syntax to use a more individual annotation approach
  • Abstracts the logic to support the same annotations for various formats
  • Adds some additional features like exclusion strategies

Compiler bug fix

14 Jul 02:35
f9b5e1b

Choose a tag to compare

Bug Fixes

  • Fixes an issue related to the compiler bug crystal-lang/crystal#7960 resulting from some removing some leftover testing code in last release.

Better handle readonly properties

14 Jul 01:00
0210611

Choose a tag to compare

Bug Fixes

  • Sets the ivar default value directly to avoid setter type restrictions.

Crystal 0.29.0 + Modules instead of inheritence

07 Jun 12:27
abff0e5

Choose a tag to compare

Bug Fixes

  • Fixes some issues with the specs and updates ameba dependency to support Crystal 0.29.0

Changes

  • breaking Custom assertions should now include CrSerializer::Assertions::Assertion instead of inheriting from it.

Fix "errors" name conflict

22 Apr 17:36
7d07962

Choose a tag to compare

Bug Fixes

  • breaking Fix a name conflict when a model has a property named errors
    • CrSerializer errors are now accessed via .validation_errors.

Delegation + Generics

20 Apr 15:46
f19626f

Choose a tag to compare

Features

Breaking Changes

  • Validation methods now must be called directly on the model. No need to include the .validator.
    • model.valid? vs model.validator.valid?.
  • When including CrSerializer, a generic type must be included that determines the format that should be supported. See the docs for more info.

Fix name conflict

30 Mar 20:24

Choose a tag to compare

Bug Fixes

  • Fix a name conflict when a model has a property named groups

Fix issue with serializing structs

30 Mar 19:53

Choose a tag to compare

Bug Fixes

  • Fix issue with serializing structs

Fix issue with deserializing to structs

30 Mar 14:18

Choose a tag to compare

Bug Fixes

  • Structs including CrSerializer can now correctly deserialize from json/yaml strings.