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
The following Hugr validates, even though { "c": "ConstF64", "v": 42 } is an incorrect serialisation of float values (it should be { "c": "ConstF64", "v": { "value": 42.0 } } instead):
I think this bug comes from OpaqueValue treating these two cases as the same:
can't deserialize because it's an unknown CustomConst
a known CustomConst failed to deserialize
when they should be treated differently. The first case is fine, leave a CustomSerialized in the Hugr. The second case should result in a deserialization failure.
If that is true then this is distinct from #1185, which is about validation not happening at all.
The following Hugr validates, even though
{ "c": "ConstF64", "v": 42 }
is an incorrect serialisation of float values (it should be{ "c": "ConstF64", "v": { "value": 42.0 } }
instead):The text was updated successfully, but these errors were encountered: