Repository navigation
0.4.1
No contract change. flipcash2.lock points at the same upstream commit as 0.4.0, and the Swift
sources are untouched — protovalidate-kt generates Kotlin only, so Swift consumers have nothing to
gain from this release.
Fixed
-
blob.v1.AccessContextcan be validated at all. Itsscopeoneof marks each armrequired, and
protovalidate-kt 0.1.1 emitted every arm's required check unguarded:Validators.checkRequired(scopeCase == ScopeCase.CHAT, "chat")?.let { violations += it } Validators.checkRequired(scopeCase == ScopeCase.PROFILE, "profile")?.let { violations += it }
Setting
chatthen failed asprofile: value is required, settingprofilefailed as
chat: value is required, and setting neither failed as both. NoAccessContextcould pass
client-side validation, which madeGetBlobsRequest.contextunusable: a caller that needed a
scope had to validate the request before attaching one. 0.1.2 guards each arm's check on that arm
being the selected one, and reports an unset oneof once, as
scope: exactly one field is required in oneof.AccessContextValidator.ktis the only one of the 203 generated validators whose output moves —
no other message in this contract has arequiredoneof arm.