Document
A course manifest. IDE settings are optional for template-only consumers such as Hanami. JSON input requires id, name, modules and exerciseModules. Empty module lists and exercise mappings are always written because existing consumers require these fields. The collection defaults apply when constructing a document in Kotlin.
JSON examples: minimal catalog, Scala course, Python course.
Samples
val document = CourseConfig.Document(id = "524", name = "Example course")
val json = document.toJson()
return CourseConfig.parse(json)val document = CourseConfig.Document(
id = "524",
name = "Example course",
aPlusUrl = "https://plus.cs.aalto.fi/",
languages = listOf("en"),
version = "4.4",
modules = listOf(CourseConfig.Module("Hello", "https://example.org/Hello.zip", version = "1.2")),
exerciseModules = mapOf(42L to mapOf("en" to "Hello"), 43L to mapOf("en" to "StudentProject")),
autoInstall = listOf("Hello"),
)
CourseConfig.validate(document)
return documentConstructors
Properties
Whether to display exercise groups even when their heading is redundant.
Names of downloadable modules installed during course setup.
Plugin callback identifiers.
Grade progression rules. Omit to hide grade progression.
A+ element IDs hidden from the course view.
Downloadable modules, in display order. Student-created modules need no entry.
Exercise categories excluded from mandatory progress.
IntelliJ plugins required by the course.
Optional IDE settings and feedback styling downloads.
Per-module Scala REPL setup.
Plugin version used for compatibility checks, parsed by ConfigVersion.parse. A+ Courses blocks setup for an older major. Other mismatches trigger notifications.