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
Hi, I’m trying to build an Ansible alternative on top of rcl. One thing that would be nice is to be able to serde_rcl::from_value(value) which will tell which part of the file didn’t match the type.
The text was updated successfully, but these errors were encountered:
I’m not yet sure what the best way to go about it is. One way is to traverse the Rust type definition and generate a deserializer that emits errors like above, but possibly nicer would be to generate an RCL type. Currently the top-level expression can be anything, but if a particular type is expected, then the typechecker can highlight the spans in the source code that don’t match the type (as opposed to evaluating first and then checking that the value fits the type, which loses information about where in the source file the value came from).
I don’t have a timeline for deserialization support, at this point some other features have higher priority for me.
Hi, I’m trying to build an Ansible alternative on top of rcl. One thing that would be nice is to be able to serde_rcl::from_value(value) which will tell which part of the file didn’t match the type.
The text was updated successfully, but these errors were encountered: