Skip to content

Add validate_request API#222

Merged
ahx merged 5 commits intomainfrom
validate-method
Jan 27, 2024
Merged

Add validate_request API#222
ahx merged 5 commits intomainfrom
validate-method

Conversation

@ahx
Copy link
Copy Markdown
Owner

@ahx ahx commented Jan 26, 2024

This adds the interface described in #221, while keeping the current interface intact.

Instead of running this

definition.request(rack_request).validate!

you should call this

definition.validate_request(rack_request, raise_error: true)

@ahx ahx changed the title Validate method Add new validate_request(…) API Jan 26, 2024
@ahx ahx force-pushed the validate-method branch 2 times, most recently from e025237 to b5a0df4 Compare January 26, 2024 22:27
@ahx ahx force-pushed the validate-method branch from b5a0df4 to 57d7025 Compare January 26, 2024 22:33
@ahx ahx changed the title Add new validate_request(…) API Add validate_request API Jan 26, 2024
@ahx ahx marked this pull request as ready for review January 26, 2024 22:59
@ahx ahx merged commit 0f034aa into main Jan 27, 2024
@ahx ahx deleted the validate-method branch January 27, 2024 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant