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

[QUESTION] How to setup multiple swagger #785

Open
GitGud31 opened this issue Dec 14, 2024 · 0 comments
Open

[QUESTION] How to setup multiple swagger #785

GitGud31 opened this issue Dec 14, 2024 · 0 comments
Assignees
Labels
question Further information is requested

Comments

@GitGud31
Copy link

Problem description.
I generally have multiple swaggers (multiple services) to work with, but I assume that the package doesn't support multiple input_folders ? Or am I missing something ?

Solution suggestion
It's be very handy to have something like the following:

targets:
  $default:
    builders:
      swagger_dart_code_generator:
        options:
          inputs_outputs:
            - input_folder: lib/apis/oauth
            - output_folder: lib/apis/oauth
            - input_folder: lib/apis/file_manager
            - output_folder: lib/apis/file_manager
            - input_folder: lib/apis/global
            - output_folder: lib/apis/global
            - input_folder: lib/apis/referential
            - output_folder: lib/apis/referential
          with_base_url: true
          use_required_attribute_for_headers: true
          with_converter: true
          enums_case_sensitive: true
          separate_models: true
          # cut_from_model_names
@GitGud31 GitGud31 added the question Further information is requested label Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants