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

Default import #4

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open

Conversation

ProbablyClem
Copy link
Collaborator

Depends on This PR

Use the previous module import feature to import everything from the src folder if no attribute is specified.

...

use utoipa_auto_discovery::utoipa_auto_discovery;

...
#[utoipa_auto_discovery]
#[derive(OpenApi)]
#[openapi(
    components(
        schemas(TestDTO)
    ),
    tags(
        (name = "todo", description = "Todo management endpoints.")
    ),
    modifiers(&SecurityAddon)
)]

pub struct ApiDoc;

...

This is now valid and will import everything from the src folder !

@ProbablyClem ProbablyClem mentioned this pull request Dec 1, 2023
@rxdiscovery
Copy link
Owner

Hello,
very good idea 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants