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 importer and its existing schema tests, then patch the narrow behavior and run the relevant checks plus the required Rust gate.
- Assistant
rgisn’t installed in this workspace, so I’m using targetedgrep/findsearches instead. - Assistant
The bug is localized: any present
additionalPropertiesvalue currently enters the map path, including JSONfalse. I’m changing that branch to modelfalseas an empty closed-object shape while leavingtrueas a free-form map and schema objects as typed maps. - Assistant
The focused regression test is compiling now. It covers both halves of the contract:
falsebecomes an empty object shape, and schema-valuedadditionalPropertiesremains a map whose value type is imported. - Assistant
All 220
coral-specunit tests and its doctest pass. I’m running the repository’s required all-features Rust gate now; this is the final broad verification for the Rust change. - Assistant
The required gate passed formatting and workspace-wide all-features Clippy, then stopped because this environment lacks the
cargo-nextestsubcommand. I’ll run the equivalent workspace test command with Cargo directly so test coverage is still completed locally. - Assistant
The direct Cargo fallback exposed unrelated environment-sensitive integration failures (permission-failure tests running as root, followed by CLI tests timing out after earlier failures). The importer’s full crate suite remains green; I’m letting the no-fail-fast run finish so I can report the exact repository-wide result rather than masking it.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.