CourseConfig

Types

Link copied to clipboard
@Serializable
data class Callbacks(val postDownloadModule: List<String> = emptyList())

Callback identifiers run by the plugin after downloading a module. See the plugin's supported callbacks. AddModuleWatermark adds student and course details to Python files. Unknown identifiers are ignored.

Link copied to clipboard
@Serializable
data class Document(val id: String, val name: String, val modules: List<CourseConfig.Module> = emptyList(), val exerciseModules: Map<Long, Map<String, String>> = emptyMap(), val aPlusUrl: String? = null, val languages: List<String> = emptyList(), val version: String = "1.0", val resources: CourseConfig.Resources? = null, val requiredPlugins: List<CourseConfig.RequiredPlugin> = emptyList(), val vmOptions: Map<String, String> = emptyMap(), val optionalCategories: List<String> = emptyList(), val autoInstall: List<String> = emptyList(), val scalaRepl: CourseConfig.ScalaRepl? = null, val callbacks: CourseConfig.Callbacks? = null, val hiddenElements: List<Long> = emptyList(), val grading: CourseConfig.Grading? = null, val alwaysShowGroups: Boolean = false)

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.

Link copied to clipboard
data class GradeProgress(val grade: String?, val pointsUntilNext: Map<String, Int>, val maxOfNext: Map<String, Int>)

A grade and the next grade's requirements per category. Grading.TOTAL reports one total category.

Link copied to clipboard
@Serializable
data class Grading(val style: String, val points: Map<String, Map<String, Int>>)

Grade requirements in ascending progression order. Map iteration order is significant. The O1 style uses A/B/C categories. Higher categories fill lower-category requirements. The TOTAL style sums points across categories. Unknown styles are preserved so newer manifests remain readable by older consumers.

Link copied to clipboard
@Serializable
data class Module(val name: String, val url: String, val version: String = "1.0", val language: String? = null, val changelog: String? = null, val sbt: Boolean = false)

Downloadable module archive. version is parsed by ConfigVersion.parse. A null language supports all course languages.

Link copied to clipboard
@Serializable
data class RequiredPlugin(val name: String, val id: String)

IntelliJ marketplace/plugin ID and its human-readable display name.

Link copied to clipboard
@Serializable
data class Resources(val ideSettings: String? = null, val ideSettingsMac: String? = null, val ideSettingsLinux: String? = null, val ideSettingsWindows: String? = null, val projectSettings: String? = null, val customProperties: String? = null, val feedbackCss: String? = null)

Download URLs. Null fields omit the corresponding resources.

Link copied to clipboard
@Serializable
data class ScalaRepl(val initialCommands: Map<String, List<String>> = emptyMap(), val arguments: String? = null)

Commands keyed by module name, plus command-line arguments for the Scala REPL.

Functions

Link copied to clipboard

Decodes known fields without authoring validation. Consumers validate the fields they require.

Link copied to clipboard

Reports all manifest validation errors. Consumers apply resource limits.

Link copied to clipboard

Returns field paths and explanations. Exercise targets may be student-created modules.