pub fn build_input_skeleton(
schema_file: &Path,
schema: &Value,
) -> Result<Value, CodegenError>Expand description
Builds a structurally-valid input skeleton from a workflow input_schema
JSON-Schema document.
schema_file is the path the schema came from, used only to name the file in
a loud error. The returned Value decodes through the codec generated from
the same schema.
§Errors
Returns CodegenError::UnsupportedConstruct — naming the file and JSON
pointer — for any construct outside the supported v1 subset ($ref, oneOf,
const, default, open objects, type unions, non-string enums, …), matching
the codec generator’s subset exactly.