Skip to main content

load_definitions

Function load_definitions 

Source
pub fn load_definitions(
    paths: &[String],
) -> Result<Vec<StructureDefinition>, String>
Expand description

Reads every StructureDefinition under the given files or directories, following the same JSON-file walk the other generators use. Bundles are unwrapped, so a profiles-resources.min.json can be passed directly.

ยงErrors

Returns an error if a path cannot be read or a file is not valid JSON.