Docs: Removing Hash schema type param and fixing md section
This commit is contained in:
parent
71d5eaea09
commit
ad529cb7ef
|
@ -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`
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue