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 switching to targetedfind/grepsearches. - Assistant
The fault is localized: importer requiredness currently defaults every parameter location to
false. I’m changing that normalization sopathalways wins, while query/header/cookie still use their explicit boolean (or default to optional). I’ll also bump the importer artifact version so previously materialized v4 packages cannot silently retain the old semantics. - Assistant
The focused tests are compiling now. The new projection case specifically catches the prior downstream symptom: a singleton GET with an omitted path
requiredmust become a table function with a required argument, while its omitted query parameter remains optional. - Assistant
All 221
coral-spectests pass. I’m now running the required all-features Rust gate; schema generation is unaffected because this changes imported semantic values, not manifest schema inputs/helpers. - Assistant
Formatting and all-features Clippy passed. The gate then stopped because this environment lacks the
cargo-nextestsubcommand; I’m using the equivalent workspace/all-targets/all-features Cargo test run as the local fallback. - Assistant
The broad Cargo fallback reached the integration suite, where two source-lifecycle rollback tests failed while running concurrently; the session then terminated before printing diagnostics. These are outside the importer path, so I’m rerunning each failed test in isolation to distinguish test-runner concurrency from a real regression.
- Assistant
The command runner itself has become unavailable after that workspace-wide test session (even a read-only
pwdis being aborted), so I can’t perform the isolated reruns at this moment. The implementation, focused tests, crate suite, formatting, and all-features Clippy have already completed successfully.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.