Skip to content

Commit 72745a3

Browse files
authored
Merge pull request #346 from moberegger/moberegger/readme-fixes
Fix some typos in README
2 parents 2631981 + f6980d2 commit 72745a3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ You can use openapi_first on production for [request validation](#request-valida
2929

3030
### Request validation
3131

32-
The request validation middleware returns a 4xx if the request is invalid or not defined in the API description. It adds a request object to the current Rack environment at `env[OpenapiFirst::REQUEST]` with the request parameters parsed exaclty as described in your API description plus access to meta information from your API description. See _[Manual use](#manual-use)_ for more details about that object.
32+
The request validation middleware returns a 4xx if the request is invalid or not defined in the API description. It adds a request object to the current Rack environment at `env[OpenapiFirst::REQUEST]` with the request parameters parsed exactly as described in your API description plus access to meta information from your API description. See _[Manual use](#manual-use)_ for more details about that object.
3333

3434
```ruby
3535
use OpenapiFirst::Middlewares::RequestValidation, 'openapi.yaml'
@@ -149,7 +149,7 @@ To make sure your _whole_ API description is implemented, openapi_first ships wi
149149
> [!NOTE]
150150
> This is a brand new feature. ✨ Your feedback is very welcome.
151151
152-
This feature tracks all requests/resposes that are validated via openapi_first and tells you about which request/responses are missing.
152+
This feature tracks all requests/responses that are validated via openapi_first and tells you about which request/responses are missing.
153153
Here is how to set it up with [rack-test](https://github.com/rack/rack-test):
154154

155155
1. Register all OpenAPI documents to track coverage for. This should go at the top of your test helper file before loading your application code.
@@ -308,7 +308,7 @@ Setup globally:
308308
```ruby
309309
OpenapiFirst.configure do |config|
310310
config.after_request_parameter_property_validation do |data, property, property_schema|
311-
data[property] = Date.iso8601(data[property]) if propert_schema['format'] == 'date'
311+
data[property] = Date.iso8601(data[property]) if property_schema['format'] == 'date'
312312
end
313313
end
314314
```
@@ -324,7 +324,7 @@ That aside, closer integration with specific frameworks like Sinatra, Hanami, Ro
324324

325325
## Alternatives
326326

327-
This gem was inspired by [committe](https://github.com/interagent/committee) (Ruby) and [Connexion](https://github.com/spec-first/connexion) (Python).
327+
This gem was inspired by [committee](https://github.com/interagent/committee) (Ruby) and [Connexion](https://github.com/spec-first/connexion) (Python).
328328
Here is a [feature comparison between openapi_first and committee](https://gist.github.com/ahx/1538c31f0652f459861713b5259e366a).
329329

330330
## Development

0 commit comments

Comments
 (0)