From b0d2f99416dc3f48bf599972e6f8fd56d3b443ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Santos?= Date: Mon, 5 Aug 2024 11:07:38 +0100 Subject: [PATCH] Reorder TaskSettings attributes by required/optional --- .../kotlin/org/ooni/engine/models/TaskSettings.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/composeApp/src/commonMain/kotlin/org/ooni/engine/models/TaskSettings.kt b/composeApp/src/commonMain/kotlin/org/ooni/engine/models/TaskSettings.kt index 1711d542..4d1d9ad6 100644 --- a/composeApp/src/commonMain/kotlin/org/ooni/engine/models/TaskSettings.kt +++ b/composeApp/src/commonMain/kotlin/org/ooni/engine/models/TaskSettings.kt @@ -5,18 +5,20 @@ import kotlinx.serialization.Serializable @Serializable data class TaskSettings( + // Required @SerialName("name") val name: String, @SerialName("inputs") val inputs: List, @SerialName("version") val version: Int = 1, @SerialName("log_level") val logLevel: TaskLogLevel, @SerialName("disabled_events") val disabledEvents: List = emptyList(), + @SerialName("options") val options: Options, + @SerialName("annotations") val annotations: Annotations, + // Optional @SerialName("proxy") val proxy: String? = null, @SerialName("state_dir") val stateDir: String? = null, @SerialName("temp_dir") val tempDir: String? = null, @SerialName("tunnel_dir") val tunnelDir: String? = null, @SerialName("assets_dir") val assetsDir: String? = null, - @SerialName("options") val options: Options, - @SerialName("annotations") val annotations: Annotations, ) { @Serializable data class Options(