Permalink
Please
sign in to comment.
Browse files
Updating to use the most recent versions of Dry::Types and Dry::Struct
… Which removed constructor_type :schema, so we need to use transforms to be more lax with attributes
- Loading branch information
Showing
with
26 additions
and 22 deletions.
- +8 −9 Gemfile.lock
- +1 −0 lib/api-blueprint.rb
- +2 −4 lib/api-blueprint/blueprint.rb
- +3 −4 lib/api-blueprint/builder.rb
- +2 −4 lib/api-blueprint/model.rb
- +9 −0 lib/api-blueprint/struct.rb
- +1 −1 lib/api-blueprint/version.rb
@@ -0,0 +1,9 @@ | ||
module ApiBlueprint | ||
class Struct < Dry::Struct | ||
transform_keys &:to_sym | ||
|
||
transform_types do |type| | ||
type.default? ? type : type.meta(omittable: true) | ||
end | ||
end | ||
end |
@@ -1,3 +1,3 @@ | ||
module ApiBlueprint | ||
VERSION = '0.5.0' | ||
VERSION = '0.6.0' | ||
end |
0 comments on commit
c0adae8