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

Using tag filters with split and single mode generates empty files with only the header comment #1691

Open
DefCon-007 opened this issue Nov 7, 2024 · 0 comments

Comments

@DefCon-007
Copy link
Contributor

What are the steps to reproduce this issue?

Try to convert a schema with an invalid tag filter and split or single mode.

Use the following config for Orval.

module.exports = {
    petstore: {
      input: {target: '<PATH TO SCHEMA>, 
      filters: {
        tags: ['invalid-tag']
      }},

      output: {
        mode: 'single',
        client: 'axios',
      }
    },
  };

What happens?

An empty file is generated with only the header comment.

What were you expecting to happen?

No file should be generated as it happens when using the tags mode with a invalid tag.

Any logs, error output, etc?

Any other comments?

What versions are you using?

  System:
    OS: macOS 15.1
    CPU: (14) arm64 Apple M3 Max
    Memory: 150.47 MB / 36.00 GB
    Shell: 5.9 - /bin/zsh
@DefCon-007 DefCon-007 changed the title Use tag filters with split and single mode generates empty files with only the header comment Using tag filters with split and single mode generates empty files with only the header comment for empty results Nov 7, 2024
@DefCon-007 DefCon-007 changed the title Using tag filters with split and single mode generates empty files with only the header comment for empty results Using tag filters with split and single mode generates empty files with only the header comment Nov 7, 2024
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

No branches or pull requests

1 participant