Skip to content

Commit

Permalink
fix: Decoding custom types with TypeDecoder (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
EnriqueL8 authored Jul 5, 2018
1 parent fca1d07 commit 83e5cb3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Sources/KituraContracts/Contracts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ public protocol Operation: Codable {
*/
public struct GreaterThan<I: Identifier>: 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) {
Expand Down Expand Up @@ -1205,7 +1205,7 @@ public struct GreaterThan<I: Identifier>: Operation {
*/
public struct GreaterThanOrEqual<I: Identifier>: 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) {
Expand Down Expand Up @@ -1253,7 +1253,7 @@ public struct GreaterThanOrEqual<I: Identifier>: Operation {
*/
public struct LowerThan<I: Identifier>: 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) {
Expand Down Expand Up @@ -1300,7 +1300,7 @@ public struct LowerThan<I: Identifier>: Operation {
*/
public struct LowerThanOrEqual<I: Identifier>: 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) {
Expand Down Expand Up @@ -1348,7 +1348,7 @@ public struct LowerThanOrEqual<I: Identifier>: Operation {
public struct InclusiveRange<I: Identifier>: 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) {
Expand Down Expand Up @@ -1402,7 +1402,7 @@ public struct InclusiveRange<I: Identifier>: Operation {
public struct ExclusiveRange<I: Identifier>: 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) {
Expand Down

0 comments on commit 83e5cb3

Please sign in to comment.