Simon-Initiative / course-digest

Tool to produce a summary or digest of OLI course package contents
MIT License
2 stars 0 forks source link

Digests sometimes don't conform to Schema #80

Open gjbunyea opened 2 years ago

gjbunyea commented 2 years ago

Occasionally, the toolkit will output a digest that is unable to be ingested due to not matching the Schema. A known case of this is

image

According to the Schema, all headings should be of this structure

   {
      "children": [
        {
          "children": [
            {
              "text": "A Great Title"
            }
          ],
          "id": "3191676082",
          "type": "h1"
        }
      ],
      "id": "88205506",
      "type": "content"
    },

The above error comes from an ingestion of this course: https://svn.oli.cmu.edu/svn/content/editor/projects/echo-oli-cmu-edu/interactive-jtkk2d6p/branches/v_1_0-echo Changing the error in the above image from 'title' to 'h1' allowed this course to be ingested.

gjbunyea commented 2 years ago

Here are some additional examples of Invalid Schemas image image

The above errors stem from this digest: c_at_cm_3-7.zip user-images.githubusercontent.com/18299544/186006303-8add34aa-9925-40d7-b6c1-9c2c39395544.png) Produced from this course: https://svn.oli.cmu.edu/svn/content/c_at_cm/c_at_cm/branches/v_3_7-echo