* Copy globals schema extensions from model/extension plugins to the course._globals * schema. * @returns {Schemas} * @example * courseModelSchema.properties._globals.properties._components.properties._accordion
()
| 111 | * courseModelSchema.properties._globals.properties._components.properties._accordion |
| 112 | */ |
| 113 | generateCourseGlobals() { |
| 114 | const courseSchema = this.getCourseSchema(); |
| 115 | this.schemas.forEach(schema => { |
| 116 | const globalsPart = schema.getCourseGlobalsPart(); |
| 117 | if (!globalsPart) { |
| 118 | return; |
| 119 | } |
| 120 | _.merge(courseSchema.json.properties._globals.properties, globalsPart); |
| 121 | }); |
| 122 | return this; |
| 123 | } |
| 124 | |
| 125 | /** |
| 126 | * Copy pluginLocations schema extensions from the extension plugins to the appropriate model schemas |
no test coverage detected