//
//  ValidationError.swift
//  ValidationKit
//
//  Created by Alex Cristea on 12/08/16.
//  Copyright © 2016 iOS NSAgora. All rights reserved.
//

import Foundation

/**
 Contains information about why a validation is invalid.
 */
public struct ValidationError: LocalizedError {

    private let message:String

    internal init(message:String) {
        self.message = message
    }

    /**
     Localised description for the reason of a failing validation.
     */
    public var errorDescription: String? {
        return message
    }
}

//
//  ValidationError.swift
//  ValidationKit
//
//  Created by Alex Cristea on 12/08/16.
//  Copyright © 2016 iOS NSAgora. All rights reserved.
//

import Foundation

/**
 Contains information about why a validation is invalid.
 */
public struct ValidationError: LocalizedError {

    private let message:String

    internal init(message:String) {
        self.message = message
    }

    /**
     Localised description for the reason of a failing validation.
     */
    public var localizedDescription: String {
        return message
    }
}

--- 
+++ 
@@ -22,7 +22,7 @@
     /**
      Localised description for the reason of a failing validation.
      */
-    public var localizedDescription: String {
+    public var errorDescription: String? {
         return message
     }
 }
Fix a protocol property implementation
