zio / zio-http

A next-generation Scala framework for building scalable, correct, and efficient HTTP clients and servers
https://zio.dev/zio-http
Apache License 2.0
787 stars 396 forks source link

Endpoint: add query codec validation for max/min length and regex #2937

Closed 987Nabil closed 2 months ago

987Nabil commented 3 months ago

OpenAPI supports such limitations and it also seems fitting for our API.

jdegoes commented 2 months ago

Perhaps these could be done via ZIO Schema Validation?

This would require using schemas to define the query parameters, but that's probably a good idea anyway.

/bounty $250

algora-pbc[bot] commented 2 months ago

💎 $250 bounty • ZIO

Steps to solve:

  1. Start working: Comment /attempt #2937 with your implementation plan
  2. Submit work: Create a pull request including /claim #2937 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to zio/zio-http!

Add a bounty • Share on socials

Attempt Started (GMT+0) Solution
🟢 @987Nabil #2991
algora-pbc[bot] commented 2 months ago

💡 @987Nabil submitted a pull request that claims the bounty. You can visit your bounty board to reward.

algora-pbc[bot] commented 2 months ago

🎉🎈 @987Nabil has been awarded $250! 🎈🎊