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

[BUG] Separate Model option doesn't seem to be working as expected #786

Open
EmmanuelAdeiza opened this issue Dec 16, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working Triage needed

Comments

@EmmanuelAdeiza
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce

  1. Use the following build.yaml configuration:
  $default:
    builders:
      swagger_dart_code_generator:
        options:
          input_folder: "swagger_input_folder/"
          output_folder: "lib/models/generated"
          separate_models: true
  1. Place a Swagger/OpenAPI file in the specified input_folder.
  2. Run the build command:
    dart run build_runner build --delete-conflicting-outputs
  3. Observe the generated files in the output_folder.

Expected behavior
Each model should be generated in a separate file within the output_folder when separate_models: true is set in the configuration.

Swagger specification link
Link to swagger/OpenApi documentation

Library version used:
3.0.1

Additional context
Add any other context about the problem here.

@EmmanuelAdeiza
Copy link
Author

Correct me if I am wrong but separate_models should generate each model in a separate file.

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

No branches or pull requests

3 participants