Skip to content

Commit 37c47bf

Browse files
committed
Fix Linux compile errors
1 parent fcf4b0b commit 37c47bf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.build
2+
.git

Sources/JMESPath/JMESVariable.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import CoreFoundation
12
import Foundation
23

34
public enum JMESVariable: Equatable {
@@ -47,7 +48,7 @@ public enum JMESVariable: Equatable {
4748
}
4849

4950
static func fromJson(_ json: String) throws -> Self {
50-
let object = try JSONSerialization.jsonObject(with: Data(json.utf8), options: [.fragmentsAllowed])
51+
let object = try JSONSerialization.jsonObject(with: Data(json.utf8), options: [.allowFragments])
5152
return try JMESVariable(from: object)
5253
}
5354

0 commit comments

Comments
 (0)