Commit Graph

88 Commits

Author SHA1 Message Date
Caleb Kleveter a54b58eac9
Conformed Failable<RawRepresentable, T> type to RawRepresentable protocol 2018-11-28 11:30:42 -06:00
Caleb Kleveter 771fc7e13e
Conformed Failable<CustomDebugStringConvertible, T> type to CustomDebugStringConvertible protocol 2018-11-28 11:26:02 -06:00
Caleb Kleveter 1097927801
Conformed Failable<LosslessStringConvertible, T> type to LosslessStringConvertible protocol 2018-11-28 11:23:29 -06:00
Caleb Kleveter 9a9fef326d
Conformed Failable<CustomStringConvertible, T> type to CustomStringConvertible protocol 2018-11-28 11:20:40 -06:00
Caleb Kleveter a48c3acbe0
Added additional comperison operators for Failable types with same underlying types and different validations 2018-11-28 11:17:39 -06:00
Caleb Kleveter 0339dd662f
Conformed Failable<Comparable, T> type to Comparable protocol 2018-11-28 11:10:16 -06:00
Caleb Kleveter 51a1bc709a
Conformed Failable<Equatable, T> type to Equatable 2018-11-28 11:07:49 -06:00
Caleb Kleveter da318a2e7b
Conformed Failable<Hashable, T> type to Hashable protocol 2018-11-28 11:07:26 -06:00
Caleb Kleveter 1660199334
Generated Jazzy API documentation 2018-11-28 11:06:50 -06:00
Caleb Kleveter 2eeb393e0c
Added build/ folder from doc generation to .gitignore 2018-11-28 11:06:21 -06:00
Caleb Kleveter 1ad12a8521
Moved Failable validation logic into internal Failable.validate(_:) method 2018-11-28 10:49:03 -06:00
Caleb Kleveter 040b12371d
Moved Failable+Codable conformance to Failable+Codable.swift file 2018-11-28 10:47:42 -06:00
Caleb Kleveter 97674b2064
Added typealias to example of ElementValidation implementation 2018-11-28 10:34:29 -06:00
Caleb Kleveter 55b0430c45
Fixed Supported type constraint for RegexValidation, so implementing types don't need a typealias 2018-11-28 10:27:17 -06:00
Caleb Kleveter b14bd6da9b
Fixed example protocol implemntations so they build without compiler errors 2018-11-28 10:24:03 -06:00
Caleb Kleveter b1b5e44e4d
Created OptionalTests test suite 2018-11-28 10:23:38 -06:00
Caleb Kleveter 5becacab49
Created StringTests test suite 2018-11-28 10:16:22 -06:00
Caleb Kleveter 9bb5fc63c2
Created ComparableTests test suit 2018-11-28 10:09:10 -06:00
Caleb Kleveter b87a7247c6
Created CollectionTests test suite 2018-11-28 09:35:17 -06:00
Caleb Kleveter cc059df288
Created test cases for ValidationTests suite 2018-11-28 09:20:11 -06:00
Caleb Kleveter 397071b714
Moved EmptyValidation type to ValidationTests.swift file 2018-11-28 09:07:22 -06:00
Caleb Kleveter c8cd426fb1
Created ValiationErrorTests test suite 2018-11-28 08:49:16 -06:00
Caleb Kleveter 4f06239ae1
Moved ValidationError.badType static property implementation to the locations is was used and deleted the property 2018-11-28 08:48:26 -06:00
Caleb Kleveter 9aeef4ee6d
Conformed ValidationError struct to Codable 2018-11-28 08:41:39 -06:00
Caleb Kleveter e1d5d1cc88
Created FailableTests test suite 2018-11-28 08:40:38 -06:00
Caleb Kleveter d6a5ffe037
Removed testcases from ValidationTests test suite 2018-11-28 08:40:25 -06:00
Caleb Kleveter de6de69e07
Conformed Failable to Encodable and Decodable when the 'value' property type is Encodable or Decodable 2018-11-28 08:25:24 -06:00
Caleb Kleveter a85773e2e1
Created NotNil and NotNilValidate validation structs 2018-11-28 08:18:06 -06:00
Caleb Kleveter 35bb27417e
Created RegexValidation protocol 2018-11-28 08:09:10 -06:00
Caleb Kleveter 6de381c841
Created InRangeValidation protocol 2018-11-28 07:49:29 -06:00
Caleb Kleveter a745dd020c
Fixed typos in LengthValidation error identifiers 2018-11-28 07:27:48 -06:00
Caleb Kleveter f6c797c180
Created ElementValidation protocol 2018-11-28 07:17:48 -06:00
Caleb Kleveter 5e48006c21
Created LengthValidation protocol 2018-11-28 06:59:49 -06:00
Caleb Kleveter 6db974df14
Use type checked sub-validations in <~ operator instead of all sub-validations 2018-11-28 06:49:18 -06:00
Caleb Kleveter 9a32a70b6f
Created <~ operator for setting Failable.value property 2018-11-27 16:31:39 -06:00
Caleb Kleveter e777eed37c
Created Failable struct 2018-11-27 16:31:20 -06:00
Caleb Kleveter 635c689db2
Created ValidationError struct 2018-11-27 16:31:08 -06:00
Caleb Kleveter 4111b41511
Generated Project. Created Validation protocol 2018-11-27 16:30:36 -06:00