You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(server): validate presence according to google.api.field_behavior annotations (#870)
## Summary
Implements server-side validation of required fields per [5.7. Field
Presence and
Optionality](https://a2a-protocol.org/latest/specification/#57-field-presence-and-optionality).
The proto schema already marks fields with `[(google.api.field_behavior)
= REQUIRED]` - this PR reads those annotations at runtime and rejects
requests with missing required fields before they reach handler logic.
**What it does:**
- Walks proto descriptors to find `REQUIRED`-annotated fields and
validates presence (including nested messages and repeated fields that
must be non-empty)
- Returns structured validation errors to clients —
`BadRequest.FieldViolation` details over gRPC, `data.errors` array over
JSON-RPC
- Applies validation via `@validate_request_params` decorator on
`RequestHandler` methods
Fixes#845, #876
0 commit comments