Skip to content

Commit

Permalink
Remove strict schema
Browse files Browse the repository at this point in the history
  • Loading branch information
vladislav-yashin committed Jun 29, 2021
1 parent 979d2ca commit 90a28e3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## [Unreleased]
## [1.7.0.3] - 2021-06-29

- Remove strict schema

## [1.7.0.2] - 2021-06-28

Expand Down
5 changes: 1 addition & 4 deletions bin/parser
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 1 addition & 4 deletions lib/tdlib/types/base.rb
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion tdlib-schema.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ["[email protected]"]

Expand Down

0 comments on commit 90a28e3

Please sign in to comment.