File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 7
7
- The validation API may now throw errors if the provided JSON Schema is
8
8
invalid.
9
9
10
+ - The structure of ValidationError has changed to include further information
11
+ such as the location of the failing instance. ValidationError was previous a
12
+ String.
13
+
10
14
### Enhancements
11
15
12
16
- The failing required validation error message is now emitted for each
Original file line number Diff line number Diff line change 1
1
import Foundation
2
2
3
3
4
- struct JSONPointer {
4
+ public struct JSONPointer {
5
5
var components : [ String ]
6
6
7
7
init ( ) {
@@ -16,7 +16,7 @@ struct JSONPointer {
16
16
}
17
17
}
18
18
19
- var path : String {
19
+ public var path : String {
20
20
return components
21
21
. map {
22
22
$0
Original file line number Diff line number Diff line change @@ -6,8 +6,7 @@ public class ValidationError {
6
6
self . instanceLocation = instanceLocation
7
7
}
8
8
9
- // FIXME make this part of public interface
10
- let instanceLocation : JSONPointer
9
+ public let instanceLocation : JSONPointer
11
10
}
12
11
13
12
You can’t perform that action at this time.
0 commit comments