Skip to content

Commit 1db99b3

Browse files
Fix build for swift-wasm (#76)
## Description Hi There, thank you for this library it very cool! I have a project that targets a server side swift and a web assembly build and it's currently failing to build for Web Assembly. Web Assembly uses the same library as linux but comes with a different OS check so it needs that small fix to compile Thank you! ## Type of Change - [X ] Bug fix - [ ] New feature - [ ] Breaking change - [ ] Documentation update ## Additional Notes
1 parent bd50166 commit 1db99b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/JSONSchema/Dialect.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public enum Dialect: String, Hashable, Sendable {
126126
let metaDictionary: [String: JSONValue] =
127127
try metaURLs?
128128
.reduce(into: [:]) { result, url in
129-
#if os(Linux)
129+
#if os(Linux) || os(WASI)
130130
guard url.lastPathComponent?.hasPrefix("schema") == false else { return }
131131
let value = try jsonValue(from: url as URL)
132132
let uriString =

0 commit comments

Comments
 (0)