GREsau / schemars

Generate JSON Schema documents from Rust code
https://graham.cool/schemars/
MIT License
820 stars 227 forks source link

Derive, use absolute import on `default` `serialize_with` #307

Closed indietyp closed 2 months ago

indietyp commented 3 months ago

This changes it so that the Result used in the derived schema code is using the absolute path to the Result enum, otherwise type aliases, such as: error_stack::Result cannot be used.

This has been observed when using schemars in conjunction with serde-with.

GREsau commented 2 months ago

Thanks!