From 83e5cb37871dce2b1e4ca61821c20b2c654c0c1c Mon Sep 17 00:00:00 2001 From: Enrique Lacal Date: Thu, 5 Jul 2018 12:23:24 +0100 Subject: [PATCH] fix: Decoding custom types with TypeDecoder (#27) --- Sources/KituraContracts/Contracts.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/KituraContracts/Contracts.swift b/Sources/KituraContracts/Contracts.swift index fe67247..5913419 100644 --- a/Sources/KituraContracts/Contracts.swift +++ b/Sources/KituraContracts/Contracts.swift @@ -1158,7 +1158,7 @@ public protocol Operation: Codable { */ public struct GreaterThan: Operation { private var value: I - private var `operator`: Operator = .greaterThan + private let `operator`: Operator = .greaterThan /// Creates a GreaterThan instance from a given Identifier value public init(value: I) { @@ -1205,7 +1205,7 @@ public struct GreaterThan: Operation { */ public struct GreaterThanOrEqual: Operation { private var value: I - private var `operator`: Operator = .greaterThanOrEqual + private let `operator`: Operator = .greaterThanOrEqual /// Creates a GreaterThanOrEqual instance from a given Identifier value public init(value: I) { @@ -1253,7 +1253,7 @@ public struct GreaterThanOrEqual: Operation { */ public struct LowerThan: Operation { private var value: I - private var `operator`: Operator = .lowerThan + private let `operator`: Operator = .lowerThan /// Creates a LowerThan instance from a given Identifier value public init(value: I) { @@ -1300,7 +1300,7 @@ public struct LowerThan: Operation { */ public struct LowerThanOrEqual: Operation { private var value: I - private var `operator`: Operator = .lowerThanOrEqual + private let `operator`: Operator = .lowerThanOrEqual /// Creates a LowerThan instance from a given Identifier value public init(value: I) { @@ -1348,7 +1348,7 @@ public struct LowerThanOrEqual: Operation { public struct InclusiveRange: Operation { private var start: I private var end: I - private var `operator`: Operator = .inclusiveRange + private let `operator`: Operator = .inclusiveRange /// Creates a InclusiveRange instance from given start and end values public init(start: I, end: I) { @@ -1402,7 +1402,7 @@ public struct InclusiveRange: Operation { public struct ExclusiveRange: Operation { private var start: I private var end: I - private var `operator`: Operator = .exclusiveRange + private let `operator`: Operator = .exclusiveRange /// Creates a ExclusiveRange instance from given start and end values public init(start: I, end: I) {