README.md in dry_validation_parser-0.1.0 vs README.md in dry_validation_parser-0.1.1

- old
+ new

@@ -13,16 +13,10 @@ And then execute: bundle install -After installing, execute the following command: - - rake dry_validation_parser:install - -This will generate configuration files in your project under `project/config/initializers`. See Configuration section for more details. - ## Usage #### Parsing a Dry::Validation::Contract Lets say we have the following Dry::Validation::Contract definition: @@ -68,11 +62,11 @@ :required => true, :type => "hash", :keys => { :some_nested_attribute => { :required => false, - :"x-nullable"=>true, + :nullable =>true, :type=>"string" } } } } @@ -80,11 +74,9 @@ As we can see, the `DryValidationParser::ValidationSchemaParser` goes through all the params defined in the schema and generates a hash. The hash is saved in the `keys` attribute of the parser. The required key in our result will be set to `true` if the field is defined as `required(:field_name)`, and `false` if defined as `optional(:field_name)`. - -The "x-nullable" key depends on whether we have defined the field as value, maybe or filled. For nested objects like array of objects or hash, we add a keys field with a definition for each field inside the nested hash. If the field is an array of primitive type, the type field will equal to the primitive type, and a