Skip to content

Commit

Permalink
Reorder TaskSettings attributes by required/optional
Browse files Browse the repository at this point in the history
  • Loading branch information
sdsantos committed Aug 5, 2024
1 parent f80472d commit b0d2f99
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@ import kotlinx.serialization.Serializable

@Serializable
data class TaskSettings(
// Required
@SerialName("name") val name: String,
@SerialName("inputs") val inputs: List<String>,
@SerialName("version") val version: Int = 1,
@SerialName("log_level") val logLevel: TaskLogLevel,
@SerialName("disabled_events") val disabledEvents: List<String> = 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(
Expand Down

0 comments on commit b0d2f99

Please sign in to comment.