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 schema importer and its existing tests, then patch the narrow interpretation and run the relevant focused checks plus the mandated Rust gate if feasible.
- Assistant
rgisn’t installed in this environment, so I’m using repository-local file discovery and grep as the fallback. I’m also checking for narrower directory guidance before editing. - Assistant
The faulty branch is isolated: any present
additionalPropertiesvalue is recursively imported as a map value schema. I’m changing that branch to recognize only literalfalseas an empty closed object, while leaving schema-valued (and currenttrue) map behavior intact. The focused test will assert both the closed-object case and a typed map case. - Assistant
The regression test is compiling now. Once it passes, I’ll run the full
coral-spectest suite and thenmake rust-checks, as required for Rust changes. - Assistant
The focused test and all 220
coral-specunit tests pass. I’m running the repository-wide Rust gate now; this is the final substantive validation and may take a few minutes because it checks all features. - Assistant
Formatting and workspace Clippy passed. The gate then stopped because this environment lacks the
cargo-nextestsubcommand (not a code failure). I’m substituting the equivalent workspace/all-targets/all-features test invocation with standard Cargo so the actual test coverage still runs locally. - Assistant
The substitute workspace test is still healthy; it has finished dependency compilation and is building the final Coral crates. No failures have appeared.
- Assistant
The full workspace substitute reached the integration suite: all relevant crates and tests passed until two unrelated
coral-appfilesystem-failure tests failed because their expected permission-denied operations succeeded in this root-run environment. I’m confirming that environmental dependency in the test code and reviewing the final diff/status before handoff.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.