You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ You can use openapi_first on production for [request validation](#request-valida
29
29
30
30
### Request validation
31
31
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.
33
33
34
34
```ruby
35
35
use OpenapiFirst::Middlewares::RequestValidation, 'openapi.yaml'
@@ -149,7 +149,7 @@ To make sure your _whole_ API description is implemented, openapi_first ships wi
149
149
> [!NOTE]
150
150
> This is a brand new feature. ✨ Your feedback is very welcome.
151
151
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.
153
153
Here is how to set it up with [rack-test](https://github.com/rack/rack-test):
154
154
155
155
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:
308
308
```ruby
309
309
OpenapiFirst.configure do |config|
310
310
config.after_request_parameter_property_validation do |data, property, property_schema|
@@ -324,7 +324,7 @@ That aside, closer integration with specific frameworks like Sinatra, Hanami, Ro
324
324
325
325
## Alternatives
326
326
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).
328
328
Here is a [feature comparison between openapi_first and committee](https://gist.github.com/ahx/1538c31f0652f459861713b5259e366a).
0 commit comments