Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add custom decoder for TypeDecoder #27

Merged
merged 2 commits into from
Jul 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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