@@ -263,7 +263,7 @@ Runs a security scan of an OpenAPI specification using OWASP ZAP.
263263
264264* Executes inside Docker
265265* Accepts an OpenAPI file or directory (default: `openapi`)
266- * Relative `-f` paths are resolved from the script location
266+ * Relative `-f` paths are resolved from the git repository root (fallback: current working directory)
267267* For file paths, supports `.yml`/`.yaml` extension fallback
268268* Skips execution if no OpenAPI specification can be resolved
269269
@@ -297,7 +297,7 @@ Validates an OpenAPI specification for schema correctness.
297297
298298* Runs the OpenAPI validator in Docker
299299* Accepts an OpenAPI file or directory (default: `openapi`)
300- * Relative `-f` paths are resolved from the script location
300+ * Relative `-f` paths are resolved from the git repository root (fallback: current working directory)
301301* For file paths, supports `.yml`/`.yaml` extension fallback
302302* Skips execution if no OpenAPI specification can be resolved
303303
@@ -319,6 +319,11 @@ curl -s $(baseUrl)/check-openapi-validation.sh | bash
319319curl -s $(baseUrl)/check-openapi-validation.sh | bash -s -- -f openapi/openapi.yaml
320320` ` `
321321
322+ ` ` ` sh
323+ # Monorepo/nested project example (path relative to git root)
324+ curl -s $(baseUrl)/check-openapi-validation.sh | bash -s -- -f mail-examples/mail-example-openapi/openapi/openapi.yaml
325+ ` ` `
326+
322327---
323328
324329# ## check-swift-headers.sh
@@ -586,7 +591,7 @@ Serves OpenAPI documentation locally using Docker.
586591# ### Behavior
587592
588593* Accepts an OpenAPI file or directory (default: `openapi`)
589- * Relative `-f` paths are resolved from the script location
594+ * Relative `-f` paths are resolved from the git repository root (fallback: current working directory)
590595* If a file is provided, mounts its parent directory
591596* For file paths, supports `.yml`/`.yaml` extension fallback
592597* Runs Nginx in the foreground
0 commit comments