Docs: Removing Hash schema type param and fixing md section

This commit is contained in:
Greg Gard 2020-09-20 15:30:12 -04:00
parent 71d5eaea09
commit ad529cb7ef
2 changed files with 3 additions and 2 deletions

View File

@ -75,7 +75,7 @@ int['one'] # => 'one'
Types::Hash.schema(name: Types::String, age: Types::Coercible::Integer)
# Using Types.Hash()
Types.Hash(:permissive, name: Types::String, age: Types::Coercible::Integer)
Types.Hash(name: Types::String, age: Types::Coercible::Integer)
```
### `Types.Array`

View File

@ -126,10 +126,11 @@ user_hash['name' => 'Jane', 'city' => 'London']
### Merging schemas
Similar than inheritance, two schemas can be merged.
Similar to inheritance, two schemas can be merged.
The resulting schema will have the sum of both sets
of attributes.
```ruby
user_hash = Types::Hash.schema(
name: Types::String
)