Skip to content

Conversation

newtork
Copy link
Contributor

@newtork newtork commented Aug 8, 2024

It would be good if we checked for any unexpected files before blindly deleting user-provided paths.
To stay safe, we should only delete what was being generated, according to the configuration provided.

* Also I want us to retain "hidden" files (with .-prefix), to keep custom files like .gitignore or .openapi-generator-ignore)

@newtork newtork added please merge Request to merge a pull request please review Request to review a pull request labels Aug 8, 2024
@newtork newtork changed the title [OpenAPI Generator] Add checks before deletion [OpenAPI Generator] When deleting files, only consider specific packages Aug 9, 2024
MatKuhr
MatKuhr previously approved these changes Aug 9, 2024
…Path by replacing `.` with `${File.separator}`; Reduce code duplicate; Add input validation to package names
@MatKuhr MatKuhr merged commit 75eb184 into main Aug 9, 2024
14 checks passed
@MatKuhr MatKuhr deleted the openapi/check-before-delete branch August 9, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
please merge Request to merge a pull request please review Request to review a pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants