mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-01-09 23:48:04 -05:00
This change introduces robust validation for Firestore document and collection paths across various Firestore tools. Key changes include: * **Path Validation:** Ensures that all Firestore paths used in tools are relative and adhere to correct formatting, preventing issues with absolute paths or malformed segments. * **Improved Parameter Descriptions:** Updates the descriptions for Firestore tool parameters to clearly specify the expectation of relative paths (e.g., `users/userId` or `users/userId/posts/postId`) instead of absolute paths. * **New Utility:** Adds `internal/tools/firestore/util/validator.go` and its corresponding test file for path validation logic. --------- Co-authored-by: prernakakkar-google <158031829+prernakakkar-google@users.noreply.github.com>