-
-
Notifications
You must be signed in to change notification settings - Fork 539
Fix path generation #991
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
Fix path generation #991
Conversation
Thank you for adding! Could you add a test for this? I do think you are fixing an issue here but I’m not sure in what scenario this is encountered. A test would help. |
Can't add a test to verify that what I'm doing is right but the issue is that here there's a regex to rename the file |
BTW I've tried a couple more combinations and I've figured out that I should update the regex I've done because it doesn't cover all the cases |
I've removed the previous regex replace that I've added |
Ohh the |
I think that testing this PR may require #990 due to the fact that Pascal case headers don't seem to work |
Got it. Merged #990! |
ec2f7d6
to
5f20b22
Compare
I think I've an issue with tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So sorry about the delay to merging this one. It slipped through the cracks. Thank you for your patience!
@all-contributors please add @HiiiiD for code, bug |
I've put up a pull request to add @HiiiiD! 🎉 |
Thanks this is really useful for me (hoping to get http yaml files on our build server rather than storing them in source control for a project) It does look like this has broken another scenario where I'm loading all yaml files from a directory. The following gives an error on both windows and our linux build server. I assume it is because of the wildcard search for the input files.
Output from yarn:
|
Gotcha @dgee2, it's because we're using |
Changes
What does this PR change? Link to any related issue(s).
Currently, if a url like
https://api-test.<website>/docs/json
is passed, then the regex creates a file with thehttps://
prefix before it, and so it doesn't work. It creates a file likehttps://api-test.<website>.ts
How to Review
How can a reviewer review your changes? What should be kept in mind for this review?
Checklist
examples/
directory updated (if applicable)