Skip to main content

Module bridge

Module bridge 

Source
Expand description

Bridge between provider QA specs and greentic-qa’s FormSpec engine.

Providers return a simple list of (id, i18n_key, required) questions. This module converts that into a full qa_spec::FormSpec so the setup engine can drive wizard flows using greentic-qa’s visibility, progress, validation, and rendering.

Functions§

build_resolved_i18n
Build a ResolvedI18nMap from the provider’s i18n bundle.
normalize_answer
Normalize a user’s answer based on the question type.
provider_qa_to_form_spec
Convert provider QA spec JSON output + i18n translations into a FormSpec.