Skip to content
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

ToSchema derive disrupts #[allow(non_snake_case)] #781

Open
James-Mart opened this issue Jul 11, 2024 · 1 comment
Open

ToSchema derive disrupts #[allow(non_snake_case)] #781

James-Mart opened this issue Jul 11, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@James-Mart
Copy link
Member

Not high priority, but some of our services will have extra warnings:

image

image

@James-Mart James-Mart added the bug Something isn't working label Jul 11, 2024
@swatanabe
Copy link
Collaborator

I can't reproduce this.

Both of the following compile without warnings:

#[derive(ToSchema)]
#[fracpack(fracpack_mod = "fracpack")]
#[allow(non_snake_case)]
pub struct Foo {
    pub Bar: i8,
}
#[allow(non_snake_case)]
mod service {
    #[derive(ToSchema)]
    #[fracpack(fracpack_mod = "fracpack")]
    pub struct Foo {
        pub Bar: i8,
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants