Creates an object conforming to the h5p.json schema.
these objects will be merged into the newly created object
Optional
a11yOptional
authorOptional
authorOptional
authorsOptional
changesOptional
contentOptional
dynamicOptional
editorOptional
hOptional
licenseOptional
licenseOptional
metaOptional
metaA flat list of all dependencies required for the content to be displayed. Note that this list is a flat representation of the full dependency tree that is created by looking up all dependencies of the main library.
Optional
sourceOptional
wOptional
yearsOptional
yearsStatic
toDetermines the main library and returns the ubername for it (e.g. "H5P.Example 1.0").
the metadata object (=h5p.json)
the ubername with a whitespace as separator
Content metadata object with defaults for required values and sanitization to make sure it the metadata conforms to the schema.