Skip to main content

Module detail

Module detail 

Source
Expand description

CRUDUI detail-spec structure validation.

A detail contains no record data and no search, so this module performs only composition and forbidden-key scanning, at the same level as list validation.

Pass 1 — compose: the detail root composes exactly as the list root does (compose_spec expands root $ref/$patch); an object fields map then expands with compose_properties, the same engine the list uses for columns. An unresolved composition is a LOAD failure (ComposeLoadError).

Pass 2 — forbidden-scan (§6): scan_forbidden_keys walks the whole composed detail tree to arbitrary depth and rejects any forbidden meta key as a LOAD failure, with the trace seeded at the detail root.

The meta-schema separately checks closed objects and shapes. The shared fixture tests/fixtures/detail-validity/cases.json declares both results.

Structs§

ValidateDetailOptions
Options for a detail-spec validation run (no data, so no data field).

Functions§

validate_detail
Validate a detail-spec’s STRUCTURE: compose then forbidden-scan (§6).