Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法指定添加到案例类的自动生成编码器的附加字段?该字段将是案例类所属的总和类型的类型字段,因此即使在使用子类的编码器的情况下,它也会生成有效的 json。