Skip to main content

Function: loadScorm12Schemas()

loadScorm12Schemas(): Promise<readonly object[]>

Defined in: scorm12/runtime.ts:42

Load any bundled SCORM 1.2 XSD schemas (optional).

Strict LMSes (older SumTotal, Saba, some SAP SuccessFactors configurations) expect the four ADLNet schemas — imscp_rootv1p1p2.xsd, imsmd_rootv1p2p1.xsd, adlcp_rootv1p2.xsd, ims_xml.xsd — to live alongside imsmanifest.xml. SCORM Cloud, Rustici Engine, and recent Moodle tolerate their absence.

This function reads any .xsd files present in src/scorm12/schemas/. If the directory is empty or missing, it returns []. See the schemas/README.md for how to populate the directory for strict-LMS distribution.

Returns

Promise<readonly object[]>