README.md in dry-swagger-0.7.2 vs README.md in dry-swagger-1.0.0

- old
+ new

@@ -19,13 +19,13 @@ rake dry-swagger:install This will generate configuration files in your project under `project/config`. See Configuration section for more details. -##Usage +## Usage -####With Dry::Validation::Contract +#### With Dry::Validation::Contract Lets say we have the following Dry::Validation::Contract definition: class TestContract < Dry::Validation::Contract params do required(:some_field).value(:str?, min_size?: 5, max_size?: 10) @@ -147,10 +147,10 @@ "some_array_of_integers", "dto" ] } -####With Dry::Struct +#### With Dry::Struct The `Dry::Swagger::StructParser` works the same as the contract parser. The required key depends on whether we define the field as attribute or attribute? The "x-nullable" key depends on whether we define the type as Type or Type.optional.