Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Sources/JSONSchema/JSONSchema.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif
import OrderedCollections

#if canImport(RegexBuilder)
Expand Down
6 changes: 6 additions & 0 deletions Sources/JSONSchema/JSONValue.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#if canImport(FoundationEssentials)
import struct FoundationEssentials.Data
import class FoundationEssentials.JSONDecoder
import class FoundationEssentials.JSONEncoder
#else
import struct Foundation.Data
import class Foundation.JSONDecoder
import class Foundation.JSONEncoder
#endif

/// A representation of a JSON value.
///
Expand Down
4 changes: 4 additions & 0 deletions Tests/JSONSchemaTests/JSONSchemaTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif
import Testing

@testable import JSONSchema
Expand Down
4 changes: 4 additions & 0 deletions Tests/JSONSchemaTests/JSONValueTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif
import Testing

@testable import JSONSchema
Expand Down