lexgen: default values are not used during generation

did:plc:p5yjdr64h7mk5l3kh6oszryk opened this Jan 23, 2026 0 comments
did:plc:p5yjdr64h7mk5l3kh6oszryk opened Jan 23, 2026

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.

No activity yet.

cospan · schematic version control on atproto built on AT Protocol