Closed danielgtaylor closed 1 month ago
The documentation for request validation has been significantly updated to enhance clarity and comprehensiveness. It now includes detailed explanations of Go struct tags used for JSON Schema validation, including field naming, optional and required fields, nullable fields, and validation tags. The documentation also clarifies the behavior of strict versus loose field validation and introduces advanced validation features for custom JSON Schemas.
File | Change Summary |
---|---|
docs/docs/features/request-validation.md | Updated to include comprehensive guidelines on Go struct tags for JSON Schema validation, nullable fields, field validation behaviors, and advanced validation features. Added examples and a table of supported validation tags. |
Objective | Addressed | Explanation |
---|---|---|
Address the issue with writeOnly behavior (#604) |
❌ | The documentation does not resolve the underlying issue with writeOnly functionality. |
🐇 In the meadow, I hop with glee,
New docs for validation, oh what a spree!
With tags and fields, clear as can be,
JSON schemas dance, wild and free!
Let's validate requests, just you and me! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 92.83%. Comparing base (
9e67984
) to head (8f800a6
). Report is 2 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Add information about read-only and write-only field behavior so that expectations are set about what Huma will handle vs. the service author themselves.
Fixes #604 with some documentation.
Summary by CodeRabbit