Respect additionalProperties false during v4 OpenAPI schema import This tracks…
- User
Respect additionalProperties false during v4 OpenAPI schema import This tracks unresolved feedback identified by cubic on PR #1149: https://github.com/withcoral/coral/pull/1149#discussion_r3347190658
Context: This appears to be pre-existing DSL v4 behavior surfaced by the refactor review, not a regression from the module split.
Problem: The schema importer treats the presence of
additionalPropertiesas map-like, soadditionalProperties: falsecan be imported as a free-form map instead of a closed object.Acceptance criteria: Handle boolean
additionalProperties: falseas a closed object, preserve schema-valued additionalProperties behavior, and add focused schema import coverage.Interface
No new interfaces are introduced.
- Assistant
I’ll trace the v4 OpenAPI schema importer and its existing tests, then patch the boolean handling and run the focused suite plus the repository Rust gate.
- Assistant
rgisn’t installed in this workspace, so I’m using the local grep/find fallback to locate the importer and coverage. - Assistant
The bug is isolated to the object-shape branch: it treats every present value—including JSON
false—as a map value schema. I’m changing only that dispatch, while retaining schema-valued (andtrue) map behavior, and adding a test that asserts both sides together. - Assistant
The focused regression test passes:
falsenow yields an empty closedObject, while a schema value still yields aMapwhose value type is imported. I’m running the fullcoral-spectests next, then the required all-feature Rust checks. - Assistant
The full
coral-specsuite is green (220 unit tests plus doctests). The repository-wide all-feature Clippy/test gate is still compiling the larger DataFusion dependency graph; no warnings or failures so far. - Assistant
The required gate reached its test step after formatting and all-feature Clippy passed, but this environment lacks the
cargo-nextestsubcommand. I’m running the equivalent workspace/all-target/all-feature suite with Cargo’s built-in test runner instead. - Assistant
The built-in workspace test run is still compiling/linking the all-feature targets; the focused crate coverage remains fully green, and there are still no compilation failures.
- Assistant
The workspace build has reached Coral’s own engine and auth targets. This is the slow link phase of the fallback runner; I’ll let it finish and report any environment-only failures separately from the implementation checks.
- Assistant
The fallback suite exposed two unrelated filesystem-permission tests that are known to behave differently when run as root (
import_rolls_back_on_config_write_failureanddelete_restores_artifacts_on_cleanup_failure). The runner session then terminated unexpectedly; I’m checking its final state and the worktree before wrapping up.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.