Skip to content

Releases: kgiszczak/shale

v1.1.0

17 Feb 14:01
Compare
Choose a tag to compare

Added

  • [bkjohnson] Add support for JSON Schema validation keywords (#29)
  • Add support for Ruby 3.3

Changed

  • Drop support for Ruby 2.6 and Ruby 2.7

Fixed

  • Fix Ox adapter incorrectly handling documents with XML declaration

v1.0.0

15 Jul 08:56
Compare
Choose a tag to compare

Added

  • Support for Ruby 3.2
  • Support for delegating fields to nested attributes
  • JSON and XML schema namespace mapping support
  • Allow to set render_nil defaults

Changed

  • Use ShaleError as a base class for exceptions
  • Use model instead of mapper names for schema types

Fixed

  • Fix compilation error for bundled JSON schemas
  • Fix type inference for XML schema when default namespace is used
  • Fix XML schema handling with a period in the element name

v0.9.0

31 Oct 10:30
Compare
Choose a tag to compare

Added

  • Support for CSV
  • Allow to specify version and add encoding to XML declaration
  • Support for mapping/generating collections

v0.8.0

30 Aug 08:55
Compare
Choose a tag to compare

Added

  • Allow to group mappings using group block
  • Bring back Ruby 2.6 support

Changed

  • Use anonymous module for attributes definition.
    It allows to override accessors and super works as expected.

v0.7.1

12 Aug 08:28
Compare
Choose a tag to compare

Fixed

  • Fix broken handling of Date and Time types

v0.7.0

09 Aug 11:53
Compare
Choose a tag to compare

Added

  • only: [] and except: [] options that allow to controll what attributes are rendered/parsed
  • render_nil: true option that allows to render nil values
  • Allow to pass a context object to extractor/generator methods

Changed

  • Pass whole document to methods for JSON/YAML/TOML so its behavior is consistent with XML mapping
  • Convert splat arguments to keyword arguments
  • RSpec: enable random spec execution and warnings

v0.6.0

05 Jul 08:54
Compare
Choose a tag to compare

Added

  • Support for TOML
  • Support for CDATA nodes in XML documents
  • Support for using custom models

Fixed

  • Allow to map XML content using methods
  • Prevent adding default mapping after mapping block was declared

v0.5.0

28 Jun 09:04
Compare
Choose a tag to compare

Added

  • Allow to generate Shale model from XML Schema

Changed

  • Shale doesn't defaults to REXML anymore - XML adapter needs to be set explicitly
  • Rename "JSONSchemaError" to "SchemaError"
  • Rename "Composite" type to "Complex"
  • Drop support for Ruby 2.6

v0.4.0

30 May 09:05
Compare
Choose a tag to compare

Added

  • Allow to add title to JSON Schema
  • Map Shale::Type::Value to "anyType" XML Schema type
  • Map Shale::Type::Value to "any" JSON Schema type
  • Allow to generate Shale model from JSON Schema

Changed

  • Performance improvements
  • Reformat README a little bit and fix typos

Fixed

  • Fix stack overflow caused by circular dependency when generating JSON and XML schemas

v0.3.1

10 May 11:18
Compare
Choose a tag to compare

Changed

  • Rename id -> $id and add info about supported JSON Schema dialect