Basically this just creates a message and attempts to set the value. Included is also a message that does not use predefined rules to compare the behaviour.
Expected Behavior
We should be able to set the value safely and run validation.
Actual Behavior
We are seeing a panic instead.
Environment
Operating System: macOS
Version: Sonoma 14.6
Compiler/Toolchain: go version go1.23.1 darwin/arm64
Description
When setting a value for a field with predefined rules, we get a panic:
Steps to Reproduce
This is an example repository with a repro: https://github.com/doriable/pv-go-bug
Basically this just creates a message and attempts to set the value. Included is also a message that does not use predefined rules to compare the behaviour.
Expected Behavior
We should be able to set the value safely and run validation.
Actual Behavior
We are seeing a panic instead.
Environment