atproto made easy crates.io/crates/jacquard

lexgen: default values are not used during generation #30

Closed nonbinary.computer
Closed opened by and assigned to nonbinary.computer

Right now the generator seems to ignore the "default" field on types that support it apart from generating a documentation comment. In my opinion a better behaviour for this would be to set the value during serialisation and deserialisation instead of generating an Option if the fiel dis not required.

I can update codegen to generate serde-default attributes for these, yes. But i don't want to drop them being Option, as that can break other stuff.

Adding this in version 0.10.1

Sign up or Sign in to add to the discussion.