Materialize entity region
nest_schema_regionMaterialize an entity region from get_schema's x-entityMap. Ordinary flat members (e.g. product_id, product_name on an order line) move into a new object named after the region, regions hanging from it move along (nest them in turn inside the new object), pairing facts stay on the host, and the moved names shed the region's tokens (product_name → name) unless strip_prefix=false. Compact scalar occurrences (e.g. manufacturer_name or each therapeutic_classes[] item) are all converted to references to one shared $defs entity; host_path and strip_prefix do not apply to that form. host_path is '' for the root, an object path, 'path[]' for an array's items, or '$defs.X'. Defaults to dry_run=true: inspect the returned schema_content and notes, then persist with dry_run=false only after approval of the change. Requires editor; no LLM call. Database-linked structural edits still require publish_schema. Modeling consequences: enricher://docs/schema-reference.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Report the rewrite without persisting it (the default). | |
| host_path | No | Container holding the flat members ('' = root, object path, 'path[]', '$defs.X'). | |
| region_id | Yes | Entity region id from x-entityMap.regions (get_schema). | |
| schema_id | Yes | UUID of the saved schema. | |
| strip_prefix | No | Drop the region's name tokens from the moved field names. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||