Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added request validator example. #215

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Zenkylo
Copy link

@Zenkylo Zenkylo commented Jun 9, 2023

This example documents how to validate the request body, query, and params.

πŸ”— Linked issue

#214

❓ Type of change

  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Update to the request validation page.
https://docs.adonisjs.com/guides/validator/introduction#validating-http-requests

It took me a bit to figure out how validation against request props work. It could save others time.

Resolves #214

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

This example documents how to validate the request body, query, and params.
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.

Additional Example to Request Validation
1 participant