Developers

Technical forum about Content Type or System Plugin development.
Here you can apply for developer access.

TypeScript types and JSON schemas

serettig's picture
Forums: 

As developing for H5P can be a bit daunting for newcomers, I've started creating TypeScript type definitions for the H5P core and JSON schemas that cover semantics.json and library.json. If you add them to your IDE or build process, you get (partial) code completion. The docs and files can be found here: https://github.com/sr258/h5p-types

This is an ongoing project and it's not finished yet, but maybe it's already helpful for some people.

H5P validation errors

Forums: 

I'm having trouble trying to modify the course presentation module. The course designers on my team want to use image hotspot inside of course presentation. This is what I've done so far: pulled the code from github, updated the semantics.json, built the node project, and packed the h5p file.

But when the h5p is uploaded to my moodle site it returns the following validation errors:

Pages