-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation error for type references inside a complex type #28
Comments
Using #[yaserde(
prefix = "my_prefix",
namespace = "my_prefix: http://www.example.com/books"
)]
pub struct Book1 {
#[yaserde(flatten)]
pub content: types::BookDetails,
} #[yaserde(
prefix = "my_prefix",
namespace = "my_prefix: http://www.example.com/books"
)]
pub struct Book2 {
#[yaserde(rename = "details", prefix = "my_prefix")]
pub details: BookDetails,
} The second reference to |
I'm having the same issue. |
I have updated the code on main that fix the problem. Can you check if it fix it correctly ? |
Something's different now, but it does not compile... at least assuming I'm supposed to use it the same way as before, and nothing changed on what I need to
This This is what I used: |
Hi @andreivasiliu I have generated a fix to handle this case. Let me know if it's fixed now. |
The following schema fails to compile:
The error is:
Most likely the code generator for complex types is creating a new scope/module but it doesn't
use super::*
or something similar.The text was updated successfully, but these errors were encountered: