-
Notifications
You must be signed in to change notification settings - Fork 124
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] Path still gets generated even when told not to #245
Comments
hi @dtaskai , exclude_path and include_path are regex strings. to make your path excluded, you need to add something like this:
Please use Regex validator to check is you String passing or not. For example, you can use this validator: https://regex101.com/ |
@dtaskai , if something is not clear - please let us know |
The exclusion didn't work on my project even after using regex syntax, so I have tried it on the example project: Added an exclusion to
Ran Then it still generated the code for
|
Ok good let me check it |
@dtaskai Yep you're right. We removed it in 2+ version. Let me fix. |
@dtaskai Please try it on latest version. Also you can put just Latest version is 2.1.3+2 |
Works on both the example and my personal project, thank you! |
Path still gets generated in the swagger.dart file when specified like the following in the build.yaml file:
targets:$package$
$default:
sources:
- lib/**
-
builders:
chopper_generator:
options:
header: "//Generated code"
swagger_dart_code_generator:
options:
input_folder: "lib/"
output_folder: "lib/swagger_generated_code/"
exclude_paths:
- "/api/mobile/actuator/"
Am I using wrong syntax or is this an actual bug?
The text was updated successfully, but these errors were encountered: