diff --git a/CHANGELOG.md b/CHANGELOG.md index b9c4d672..1f131be0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,6 @@ -## [Unreleased] +## [1.7.0.3] - 2021-06-29 + +- Remove strict schema ## [1.7.0.2] - 2021-06-28 diff --git a/bin/parser b/bin/parser index 12a37d80..fd48520c 100755 --- a/bin/parser +++ b/bin/parser @@ -217,10 +217,7 @@ puts "Writing Base class" klass = <<-RUBY module TD::Types - class Base < Dry::Struct - # throw an error when unknown keys provided - schema schema.strict - + class Base < Dry::Struct # convert string keys to symbols transform_keys(&:to_sym) diff --git a/lib/tdlib/types/base.rb b/lib/tdlib/types/base.rb index 0f86d62e..d2a7832e 100644 --- a/lib/tdlib/types/base.rb +++ b/lib/tdlib/types/base.rb @@ -1,8 +1,5 @@ module TD::Types - class Base < Dry::Struct - # throw an error when unknown keys provided - schema schema.strict - + class Base < Dry::Struct # convert string keys to symbols transform_keys(&:to_sym) diff --git a/tdlib-schema.gemspec b/tdlib-schema.gemspec index bac8c80a..6fb3517c 100644 --- a/tdlib-schema.gemspec +++ b/tdlib-schema.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |spec| spec.name = "tdlib-schema" - spec.version = "1.7.0.2" + spec.version = "1.7.0.3" spec.authors = ["Southbridge"] spec.email = ["ask@southbridge.io"]