Treat OpenAPI path parameters as required in v4 import This tracks unresolved feedback…
- User
Treat OpenAPI path parameters as required in v4 import This tracks unresolved feedback identified by cubic on PR #1149: https://github.com/withcoral/coral/pull/1149#discussion_r3347190640
Context: This appears to be pre-existing DSL v4 behavior surfaced by the refactor review, not a regression from the module split.
Problem: OpenAPI path parameters are imported as optional when
requiredis omitted, even though path parameters are required by OpenAPI. This can misclassify required path inputs as optional SQL filters.Acceptance criteria: Import path parameters as required regardless of an omitted
requiredfield, preserve explicit behavior for non-path parameters, and add focused importer/projection coverage.Interface
No new interfaces are introduced.
- Assistant
I’ll trace the v4 OpenAPI importer and projection tests, patch the requiredness rule at the import boundary, then run focused tests and the repository Rust gate.
- Assistant
rgisn’t installed in this workspace, so I’m usingfind/grepfor the same read-only trace. I’ll also check for any nearer repository instructions before editing. - Assistant
The fault is localized: parameter requiredness currently defaults every location to
false. I’m changing that normalization sopathalways becomes required while query/header/cookie parameters continue honoring their explicit boolean (or defaulting to optional), and I’m checking whether the importer artifact version must advance with this semantic change. - Assistant
The implementation and both focused regressions are in place. Compilation is still running from a cold build; after these tests pass I’ll run the full mandated
make rust-checksgate. - Assistant
All 221
coral-spectests and its doctest pass, including the focused importer and projection cases. The importer version is advanced toopenapi-v3so previously materialized v4 artifacts are correctly rejected as stale and users are guided to re-add them; I’m now running the full Rust validation gate required by the repo. - Assistant
Formatting and workspace Clippy passed. The gate then stopped because this environment does not have the repo-required
cargo-nextestbinary; without installing anything externally, I’m running the equivalent workspace/all-target/all-feature test suite through Cargo’s built-in runner. - Assistant
The fallback full workspace suite is still compiling the DataFusion-heavy test graph; no failures have appeared. The changed crate’s complete tests are already green, and the workspace-wide run is the remaining verification.
- Assistant
The built-in runner exposed unrelated environment-sensitive failures in existing filesystem-permission and CLI end-to-end tests, then continued because
--no-fail-fastwas requested. I’m letting it finish so I can separate any relevant failure from those runner/environment differences and report the exact validation state.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.