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 focused suite plus the required Rust checks.
- Assistant
rgisn’t installed in this workspace, so I’m using the repository’s available search tools and keeping the search scoped to Rust sources. - Assistant
The defect is localized: a property-less object sends every
additionalPropertiesvalue through recursive schema import, including the booleanfalse. I’ll distinguish that boolean as an empty closed object while leaving schema objects (and the existingtruebehavior) on the map path. - Assistant
The focused regression test is compiling now. It covers both halves of the contract in one import:
falsebecomes an empty object shape, while a string-valued additional-properties schema remains a typed map. - Assistant
The focused test and all 220
coral-specunit tests pass. The diff is clean; I’m running the repository’s mandated all-feature Rust gate now. - Assistant
Formatting and all-feature Clippy passed. The gate then stopped because this environment lacks the
cargo-nextestexecutable; I’m running the equivalent workspace/all-target/all-feature tests through standard Cargo as the local fallback. - Assistant
The fallback suite reached tests and exposed unrelated environment-sensitive failures (permission-failure tests run as root, plus CLI process-launch failures). I’m letting the no-fail-fast run finish so the validation report is complete; the changed crate’s full suite remains green.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.