Skip to main content

Module setup_to_formspec

Module setup_to_formspec 

Source
Expand description

Converts legacy setup.yaml (SetupSpec) into qa_spec::FormSpec.

This allows setup logic to drive provider configuration through a single FormSpec-based wizard regardless of whether the provider ships a WASM qa-spec op or a static setup.yaml file.

Functions§

capitalize
Capitalize the first character of a string.
extract_default_from_help
Extract default value from help text.
infer_default_for_id
Infer a default value for well-known question IDs.
infer_question_properties
Infer QuestionType, secret flag, and optional constraint from a question ID.
pack_to_form_spec
Load a FormSpec from a pack’s setup.yaml, if present.
setup_spec_to_form_spec
Convert a legacy SetupSpec (from assets/setup.yaml) into a FormSpec.
strip_domain_prefix
Strip common domain prefixes from a provider ID for display.