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
Add conformance test cases for malformed nanos fields on Durations and Timestamps.
Durations have a validity restriction on `nanos` that:
- The range allowed is (-1s..1s) exclusive
- The sign must match the sign of `secs` (for 0 secs both positive and negative values of nanos are allowed)
Timestamps have a validity restriction on `nanos` that:
- The range allowed is [0..1s)
These cases have always been commented as only being valid under these constraints, and other validity constraints are already checked to be handled as ProtoJSON serialize-failures, but this particular condition was not covered by the conformance suite.
PiperOrigin-RevId: 791194939
0 commit comments