fix: add validation to mount-path#2391
Conversation
🦋 Changeset detectedLatest commit: 512a7ce The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
|
|
📦 A new experimental 🧪 version v0.0.0-snapshot.1761649655 of Redocly CLI has been published for testing. Install with NPM: npm install @redocly/cli@0.0.0-snapshot.1761649655
# or
npm install @redocly/openapi-core@0.0.0-snapshot.1761649655
# or
npm install @redocly/respect-core@0.0.0-snapshot.1761649655 |
|
📦 A new experimental 🧪 version v0.0.0-snapshot.1761650882 of Redocly CLI has been published for testing. Install with NPM: npm install @redocly/cli@0.0.0-snapshot.1761650882
# or
npm install @redocly/openapi-core@0.0.0-snapshot.1761650882
# or
npm install @redocly/respect-core@0.0.0-snapshot.1761650882 |
Co-authored-by: Jacek Łękawa <164185257+JLekawa@users.noreply.github.com>
What/Why/How?
mount-pathwas not checked, which led to errors when used with an empty path or a path identical (/) to the project path.Reference
Testing
Error when using
--mount-pathor--mpwith an empty path or root path.Screenshots (optional)
Example of usage

Check yourself
Security