OpenAPIFileNotFoundError
The Cause
Section titled “The Cause”The OpenAPI file could not be found or read. This error occurs during the file resolution phase when Thymian attempts to locate and load the specified OpenAPI document.
Common causes include:
- File does not exist - The path you provided doesn’t point to an actual file
- Incorrect path - The file path is relative but the current working directory is different than expected
- File permissions - The file exists but cannot be read due to permission restrictions
The Solution
Section titled “The Solution”Verify the file path
Section titled “Verify the file path”Ensure the file path is correct and the file exists:
# Check if the file existsls -la path/to/your/openapi.yaml
# If using a relative path, verify your working directorypwdUse absolute paths
Section titled “Use absolute paths”If you’re having issues with relative paths, try using an absolute path:
thymian openapi validate /absolute/path/to/openapi.yaml