Skip to main content

Module make_json_view

Module make_json_view 

Source
Expand description

ferro make:json-view command implementation.

Generates a JSON-UI v2 spec file (src/views/{name}.json) from a ServiceDef via the deterministic Spec::from_service_def renderer. Two ServiceDef sources are supported:

  • NL description (-d "<text>") โ†’ scaffold_core โ†’ ServiceDef
  • Pre-serialized JSON file (--from-service-json <path>) โ†’ ServiceDef

Handlers call JsonUi::render_file("views/{name}.json", data).

Functionsยง

run