poem-web / poem

A full-featured and easy-to-use web framework with the Rust programming language.
Apache License 2.0
3.62k stars 295 forks source link

poem-openapi 5.0.1 is incompatible with poem-openapi-derive 5.0.0 #820

Closed antoninfin closed 6 months ago

antoninfin commented 6 months ago

poem-openapi 5.0.1 was released while peom-openapi-derive wasn't. However poem-api 5.0.1 __private module no longer reexports static_assertions which poem-openapi-derive 5.0.0 will try to use leading to compilation errors on unions a with discriminator name:

101 | #[derive(poem_openapi::Union, Debug, Clone)]
    |          ^^^^^^^^^^^^^^^^^^^ could not find `static_assertions` in `__private`

Could you please release poem-openapi-derive 5.0.1 with latest changes?

sunli829 commented 6 months ago

fixed in v5.0.2 🙂