Repository navigation
Conversation
A path in local_paths can now be a YAML file, not only a directory. This lets a service validate against its root openapi.yaml without loading every YAML file of the project. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟢 Approval recommended
The focused change matches the requested behavior, includes regression tests, and has no identified blocking issues.
0 open findings
What changed in this PR
Adds single-file support to local_paths, allowing projects to load one OpenAPI specification without scanning a directory.
Changes:
- Loads explicit
.yamland.ymlfiles while preserving directory handling. - Adds tests for single-file loading and skipping non-YAML files.
- Documents file and directory configuration examples.
| File | Description |
|---|---|
| tests/Unit/SchemaLoader/LocalSchemaLoaderTest.php | Tests single-file loading and non-YAML exclusion. |
| src/SchemaLoader/LocalSchemaLoader.php | Adds direct YAML file loading. |
| README.md | Documents both supported path types. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
local_pathsaccepts only directories and silently skips a file path. A project that keeps its contract in a single rootopenapi.yamlcannot point the validator at it without loading every YAML file of the project.What Changed
LocalSchemaLoaderloads a.yaml/.ymlfile given directly inlocal_paths