diff --git a/Sources/OpenAPIKit/Callbacks.swift b/Sources/OpenAPIKit/Callbacks.swift index 897ce11840..1a8aaec256 100644 --- a/Sources/OpenAPIKit/Callbacks.swift +++ b/Sources/OpenAPIKit/Callbacks.swift @@ -1,12 +1,14 @@ // // Callbacks.swift // -// -// Created by Mathew Polzin on 11/1/20. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI { diff --git a/Sources/OpenAPIKit/Components Object/Components+Locatable.swift b/Sources/OpenAPIKit/Components Object/Components+Locatable.swift index 8392277dbf..8ced036a0d 100644 --- a/Sources/OpenAPIKit/Components Object/Components+Locatable.swift +++ b/Sources/OpenAPIKit/Components Object/Components+Locatable.swift @@ -1,12 +1,14 @@ // // Components+Locatable.swift // -// -// Created by Mathew Polzin on 3/30/20. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif /// Anything conforming to ComponentDictionaryLocatable knows /// where to find resources of its type in the Components Dictionary. diff --git a/Sources/OpenAPIKit/Components Object/Components.swift b/Sources/OpenAPIKit/Components Object/Components.swift index b4bac75d09..d2a0aa8a79 100644 --- a/Sources/OpenAPIKit/Components Object/Components.swift +++ b/Sources/OpenAPIKit/Components Object/Components.swift @@ -1,12 +1,14 @@ // // Components.swift // -// -// Created by Mathew Polzin on 6/22/19. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI { /// OpenAPI Spec "Components Object". diff --git a/Sources/OpenAPIKit/Document/Document.swift b/Sources/OpenAPIKit/Document/Document.swift index d4816eea8f..94e1d9100d 100644 --- a/Sources/OpenAPIKit/Document/Document.swift +++ b/Sources/OpenAPIKit/Document/Document.swift @@ -2,11 +2,14 @@ // Document.swift // OpenAPI // -// Created by Mathew Polzin on 1/13/19. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI { /// The root of an OpenAPI 3.1 document. diff --git a/Sources/OpenAPIKit/Document/DocumentInfo.swift b/Sources/OpenAPIKit/Document/DocumentInfo.swift index 22ca258a5d..78c200aacf 100644 --- a/Sources/OpenAPIKit/Document/DocumentInfo.swift +++ b/Sources/OpenAPIKit/Document/DocumentInfo.swift @@ -1,12 +1,14 @@ // // DocumentInfo.swift // -// -// Created by Mathew Polzin on 12/29/19. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI.Document { /// OpenAPI Spec "Info Object" diff --git a/Sources/OpenAPIKit/Either/Either+Convenience.swift b/Sources/OpenAPIKit/Either/Either+Convenience.swift index dade06100e..2f672da205 100644 --- a/Sources/OpenAPIKit/Either/Either+Convenience.swift +++ b/Sources/OpenAPIKit/Either/Either+Convenience.swift @@ -1,12 +1,14 @@ // // Either+Convenience.swift // -// -// Created by Mathew Polzin on 3/29/20. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif // MARK: - Convenience accessors extension Either where A: OpenAPIKitCore._OpenAPIReference { diff --git a/Sources/OpenAPIKit/Example/Example.swift b/Sources/OpenAPIKit/Example/Example.swift index 526c0fd171..f609be708b 100644 --- a/Sources/OpenAPIKit/Example/Example.swift +++ b/Sources/OpenAPIKit/Example/Example.swift @@ -1,12 +1,14 @@ // // Example.swift // -// -// Created by Mathew Polzin on 10/6/19. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI { /// OpenAPI Spec "Example Object" diff --git a/Sources/OpenAPIKit/Example/ExampleValue.swift b/Sources/OpenAPIKit/Example/ExampleValue.swift index f8dae0dadd..715fe0932e 100644 --- a/Sources/OpenAPIKit/Example/ExampleValue.swift +++ b/Sources/OpenAPIKit/Example/ExampleValue.swift @@ -2,7 +2,11 @@ // ExampleValue.swift // +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI.Example { /// OpenAPI Spec "Example Object" `datValue`, `serializedValue`, diff --git a/Sources/OpenAPIKit/ExternalDocumentation.swift b/Sources/OpenAPIKit/ExternalDocumentation.swift index 1281c442f9..0727cc34b5 100644 --- a/Sources/OpenAPIKit/ExternalDocumentation.swift +++ b/Sources/OpenAPIKit/ExternalDocumentation.swift @@ -1,12 +1,14 @@ // // ExternalDocumentation.swift // -// -// Created by Mathew Polzin on 11/2/19. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI { /// OpenAPI Spec "External Documentation Object" diff --git a/Sources/OpenAPIKit/ExternalLoader.swift b/Sources/OpenAPIKit/ExternalLoader.swift index 238db65c06..c67b8eb5c0 100644 --- a/Sources/OpenAPIKit/ExternalLoader.swift +++ b/Sources/OpenAPIKit/ExternalLoader.swift @@ -1,12 +1,14 @@ // // ExternalLoader.swift // -// -// Created by Mathew Polzin on 7/30/2023. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif // Once we hit language version 6.2 we get warnings (errors for Swift 6 // language mode) if the ExternalLoader is not a SendableMetatype. We just diff --git a/Sources/OpenAPIKit/JSONReference.swift b/Sources/OpenAPIKit/JSONReference.swift index d2b8a0fd5c..e0207c5239 100644 --- a/Sources/OpenAPIKit/JSONReference.swift +++ b/Sources/OpenAPIKit/JSONReference.swift @@ -1,12 +1,14 @@ // // JSONReference.swift // -// -// Created by Mathew Polzin on 6/22/19. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif /// A reference following the JSON Reference specification. /// diff --git a/Sources/OpenAPIKit/Link.swift b/Sources/OpenAPIKit/Link.swift index 1066cdc176..4b393cf250 100644 --- a/Sources/OpenAPIKit/Link.swift +++ b/Sources/OpenAPIKit/Link.swift @@ -1,16 +1,18 @@ // // Link.swift // -// -// Created by Mathew Polzin on 1/23/20. -// // TODO: create validation that operationIds in Link objects // refer to Operation objects in the document that have the // given ids. import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI { /// OpenAPI Spec "Link Object" diff --git a/Sources/OpenAPIKit/Path Item/DereferencedPathItem.swift b/Sources/OpenAPIKit/Path Item/DereferencedPathItem.swift index cdc11150d0..8bddb1ab75 100644 --- a/Sources/OpenAPIKit/Path Item/DereferencedPathItem.swift +++ b/Sources/OpenAPIKit/Path Item/DereferencedPathItem.swift @@ -1,12 +1,14 @@ // // DereferencedPathItem.swift // -// -// Created by Mathew Polzin on 6/18/20. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif /// An `OpenAPI.PathItem` type that guarantees /// its `parameters` and operations are inlined instead of diff --git a/Sources/OpenAPIKit/Schema Conformances/SwiftPrimitiveTypes+OpenAPI.swift b/Sources/OpenAPIKit/Schema Conformances/SwiftPrimitiveTypes+OpenAPI.swift index 6baefe59ca..939df6fac2 100644 --- a/Sources/OpenAPIKit/Schema Conformances/SwiftPrimitiveTypes+OpenAPI.swift +++ b/Sources/OpenAPIKit/Schema Conformances/SwiftPrimitiveTypes+OpenAPI.swift @@ -2,10 +2,12 @@ // SwiftPrimitiveTypes+OpenAPI.swift // OpenAPIKit // -// Created by Mathew Polzin on 01/13/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension Optional: OpenAPISchemaType where Wrapped: OpenAPISchemaType { static public var openAPISchema: JSONSchema { diff --git a/Sources/OpenAPIKit/Schema Object/SimplifiedJSONSchema.swift b/Sources/OpenAPIKit/Schema Object/SimplifiedJSONSchema.swift index 0bbd517331..3c06ab72f3 100644 --- a/Sources/OpenAPIKit/Schema Object/SimplifiedJSONSchema.swift +++ b/Sources/OpenAPIKit/Schema Object/SimplifiedJSONSchema.swift @@ -1,12 +1,14 @@ // // SimplifiedJSONSchema.swift // -// -// Created by Mathew Polzin on 9/4/20. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension JSONSchema { /// Get a simplified `DereferencedJSONSchema`. diff --git a/Sources/OpenAPIKit/Security/OAuthFlows.swift b/Sources/OpenAPIKit/Security/OAuthFlows.swift index 8fc14b65d8..e204b3a9f8 100644 --- a/Sources/OpenAPIKit/Security/OAuthFlows.swift +++ b/Sources/OpenAPIKit/Security/OAuthFlows.swift @@ -1,12 +1,14 @@ // // OAuthFlows.swift // -// -// Created by Mathew Polzin on 1/23/20. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI { /// OpenAPI Spec "Oauth Flows Object" diff --git a/Sources/OpenAPIKit/Security/SecurityScheme.swift b/Sources/OpenAPIKit/Security/SecurityScheme.swift index dd654cf607..675c73c1f1 100644 --- a/Sources/OpenAPIKit/Security/SecurityScheme.swift +++ b/Sources/OpenAPIKit/Security/SecurityScheme.swift @@ -1,12 +1,14 @@ // // SecurityScheme.swift // -// -// Created by Mathew Polzin on 12/30/19. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI { /// OpenAPI Spec "Security Scheme Object" diff --git a/Sources/OpenAPIKit/Server.swift b/Sources/OpenAPIKit/Server.swift index 32d032b2fa..e527876b1e 100644 --- a/Sources/OpenAPIKit/Server.swift +++ b/Sources/OpenAPIKit/Server.swift @@ -2,11 +2,14 @@ // Server.swift // OpenAPIKit // -// Created by Mathew Polzin on 8/25/19. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI { /// OpenAPI Spec "Server Object" diff --git a/Sources/OpenAPIKit/Utility/Container+DecodeURLAsString.swift b/Sources/OpenAPIKit/Utility/Container+DecodeURLAsString.swift index b9347662ac..1a1eec111a 100644 --- a/Sources/OpenAPIKit/Utility/Container+DecodeURLAsString.swift +++ b/Sources/OpenAPIKit/Utility/Container+DecodeURLAsString.swift @@ -1,12 +1,14 @@ // // Container+DecodeURLAsString.swift // -// -// Created by Mathew Polzin on 7/5/20. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension KeyedDecodingContainerProtocol { internal func decodeURLAsString(forKey key: Self.Key) throws -> URL { diff --git a/Sources/OpenAPIKit/Utility/OrderedDictionry+LocallyDereferenceable.swift b/Sources/OpenAPIKit/Utility/OrderedDictionry+LocallyDereferenceable.swift index 95b114b509..a4aa66a0a8 100644 --- a/Sources/OpenAPIKit/Utility/OrderedDictionry+LocallyDereferenceable.swift +++ b/Sources/OpenAPIKit/Utility/OrderedDictionry+LocallyDereferenceable.swift @@ -1,12 +1,14 @@ // // OrderedDictionry+LocallyDereferenceable.swift // -// -// Created by Alberto Lagos on 11-09-23. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif /// A Swift extension for dereferencing an `OrderedDictionary` conforming to the `LocallyDereferenceable` protocol. /// diff --git a/Sources/OpenAPIKit/XML.swift b/Sources/OpenAPIKit/XML.swift index dbf8db7bae..5de44f3eb9 100644 --- a/Sources/OpenAPIKit/XML.swift +++ b/Sources/OpenAPIKit/XML.swift @@ -3,7 +3,12 @@ // import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI { /// OpenAPI Spec "XML Object" diff --git a/Sources/OpenAPIKit30/Callbacks.swift b/Sources/OpenAPIKit30/Callbacks.swift index ada29dc5f4..5ed0b0db21 100644 --- a/Sources/OpenAPIKit30/Callbacks.swift +++ b/Sources/OpenAPIKit30/Callbacks.swift @@ -1,12 +1,14 @@ // // Callback.swift // -// -// Created by Mathew Polzin on 11/1/20. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI { /// A map from runtime expressions to path items to be used as diff --git a/Sources/OpenAPIKit30/Components Object/Components.swift b/Sources/OpenAPIKit30/Components Object/Components.swift index b804959e6e..ad266bf137 100644 --- a/Sources/OpenAPIKit30/Components Object/Components.swift +++ b/Sources/OpenAPIKit30/Components Object/Components.swift @@ -1,12 +1,14 @@ // // Components.swift // -// -// Created by Mathew Polzin on 6/22/19. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI { /// OpenAPI Spec "Components Object". diff --git a/Sources/OpenAPIKit30/Document/DocumentInfo.swift b/Sources/OpenAPIKit30/Document/DocumentInfo.swift index 0a33afb089..0d123ae817 100644 --- a/Sources/OpenAPIKit30/Document/DocumentInfo.swift +++ b/Sources/OpenAPIKit30/Document/DocumentInfo.swift @@ -1,12 +1,14 @@ // // DocumentInfo.swift // -// -// Created by Mathew Polzin on 12/29/19. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI.Document { /// OpenAPI Spec "Info Object" diff --git a/Sources/OpenAPIKit30/Either/Either+Convenience.swift b/Sources/OpenAPIKit30/Either/Either+Convenience.swift index 9affbcaca8..a9a08f935d 100644 --- a/Sources/OpenAPIKit30/Either/Either+Convenience.swift +++ b/Sources/OpenAPIKit30/Either/Either+Convenience.swift @@ -1,12 +1,14 @@ // // Either+Convenience.swift // -// -// Created by Mathew Polzin on 3/29/20. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif // MARK: - Convenience accessors extension Either where A: OpenAPIKitCore._OpenAPIReference { diff --git a/Sources/OpenAPIKit30/Example.swift b/Sources/OpenAPIKit30/Example.swift index 28bfd52774..2add5a3135 100644 --- a/Sources/OpenAPIKit30/Example.swift +++ b/Sources/OpenAPIKit30/Example.swift @@ -1,12 +1,14 @@ // // Example.swift // -// -// Created by Mathew Polzin on 10/6/19. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI { /// OpenAPI Spec "Example Object" diff --git a/Sources/OpenAPIKit30/ExternalDocumentation.swift b/Sources/OpenAPIKit30/ExternalDocumentation.swift index a79ae106a8..c49d6a8af5 100644 --- a/Sources/OpenAPIKit30/ExternalDocumentation.swift +++ b/Sources/OpenAPIKit30/ExternalDocumentation.swift @@ -1,12 +1,14 @@ // // ExternalDocumentation.swift // -// -// Created by Mathew Polzin on 11/2/19. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI { /// OpenAPI Spec "External Documentation Object" diff --git a/Sources/OpenAPIKit30/ExternalLoader.swift b/Sources/OpenAPIKit30/ExternalLoader.swift index 238db65c06..c67b8eb5c0 100644 --- a/Sources/OpenAPIKit30/ExternalLoader.swift +++ b/Sources/OpenAPIKit30/ExternalLoader.swift @@ -1,12 +1,14 @@ // // ExternalLoader.swift // -// -// Created by Mathew Polzin on 7/30/2023. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif // Once we hit language version 6.2 we get warnings (errors for Swift 6 // language mode) if the ExternalLoader is not a SendableMetatype. We just diff --git a/Sources/OpenAPIKit30/JSONReference.swift b/Sources/OpenAPIKit30/JSONReference.swift index a4d0d3574c..5c9b211a47 100644 --- a/Sources/OpenAPIKit30/JSONReference.swift +++ b/Sources/OpenAPIKit30/JSONReference.swift @@ -1,12 +1,14 @@ // // JSONReference.swift // -// -// Created by Mathew Polzin on 6/22/19. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif /// A reference following the JSON Reference specification. /// diff --git a/Sources/OpenAPIKit30/Link.swift b/Sources/OpenAPIKit30/Link.swift index f1bed43764..790450e77e 100644 --- a/Sources/OpenAPIKit30/Link.swift +++ b/Sources/OpenAPIKit30/Link.swift @@ -1,16 +1,18 @@ // // Link.swift // -// -// Created by Mathew Polzin on 1/23/20. -// // TODO: create validation that operationIds in Link objects // refer to Operation objects in the document that have the // given ids. import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI { /// OpenAPI Spec "Link Object" diff --git a/Sources/OpenAPIKit30/Schema Conformances/SwiftPrimitiveTypes+OpenAPI.swift b/Sources/OpenAPIKit30/Schema Conformances/SwiftPrimitiveTypes+OpenAPI.swift index 9cef2f65a8..b51caa7aaa 100644 --- a/Sources/OpenAPIKit30/Schema Conformances/SwiftPrimitiveTypes+OpenAPI.swift +++ b/Sources/OpenAPIKit30/Schema Conformances/SwiftPrimitiveTypes+OpenAPI.swift @@ -2,10 +2,12 @@ // SwiftPrimitiveTypes+OpenAPI.swift // OpenAPIKit // -// Created by Mathew Polzin on 01/13/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension Optional: OpenAPISchemaType where Wrapped: OpenAPISchemaType { static public var openAPISchema: JSONSchema { diff --git a/Sources/OpenAPIKit30/Schema Object/SimplifiedJSONSchema.swift b/Sources/OpenAPIKit30/Schema Object/SimplifiedJSONSchema.swift index 0bbd517331..3c06ab72f3 100644 --- a/Sources/OpenAPIKit30/Schema Object/SimplifiedJSONSchema.swift +++ b/Sources/OpenAPIKit30/Schema Object/SimplifiedJSONSchema.swift @@ -1,12 +1,14 @@ // // SimplifiedJSONSchema.swift // -// -// Created by Mathew Polzin on 9/4/20. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension JSONSchema { /// Get a simplified `DereferencedJSONSchema`. diff --git a/Sources/OpenAPIKit30/Security/OAuthFlows.swift b/Sources/OpenAPIKit30/Security/OAuthFlows.swift index baa25f7d4b..6d803bdedd 100644 --- a/Sources/OpenAPIKit30/Security/OAuthFlows.swift +++ b/Sources/OpenAPIKit30/Security/OAuthFlows.swift @@ -1,12 +1,14 @@ // // OAuthFlows.swift // -// -// Created by Mathew Polzin on 1/23/20. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI { /// OpenAPI Spec "Oauth Flows Object" diff --git a/Sources/OpenAPIKit30/Security/SecurityScheme.swift b/Sources/OpenAPIKit30/Security/SecurityScheme.swift index 86c76e0199..cc3920d627 100644 --- a/Sources/OpenAPIKit30/Security/SecurityScheme.swift +++ b/Sources/OpenAPIKit30/Security/SecurityScheme.swift @@ -1,12 +1,14 @@ // // SecurityScheme.swift // -// -// Created by Mathew Polzin on 12/30/19. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI { /// OpenAPI Spec "Security Scheme Object" diff --git a/Sources/OpenAPIKit30/Server.swift b/Sources/OpenAPIKit30/Server.swift index 8d1ed69d89..81c7e6c6cd 100644 --- a/Sources/OpenAPIKit30/Server.swift +++ b/Sources/OpenAPIKit30/Server.swift @@ -2,11 +2,14 @@ // Server.swift // OpenAPIKit // -// Created by Mathew Polzin on 8/25/19. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI { /// OpenAPI Spec "Server Object" diff --git a/Sources/OpenAPIKit30/Utility/Container+DecodeURLAsString.swift b/Sources/OpenAPIKit30/Utility/Container+DecodeURLAsString.swift index 5b17ae0034..08f15204ce 100644 --- a/Sources/OpenAPIKit30/Utility/Container+DecodeURLAsString.swift +++ b/Sources/OpenAPIKit30/Utility/Container+DecodeURLAsString.swift @@ -1,12 +1,14 @@ // // Container+DecodeURLAsString.swift // -// -// Created by Mathew Polzin on 7/5/20. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension KeyedDecodingContainerProtocol { internal func decodeURLAsString(forKey key: Self.Key) throws -> URL { diff --git a/Sources/OpenAPIKit30/Utility/OrderedDictionry+LocallyDereferenceable.swift b/Sources/OpenAPIKit30/Utility/OrderedDictionry+LocallyDereferenceable.swift index 95b114b509..a4aa66a0a8 100644 --- a/Sources/OpenAPIKit30/Utility/OrderedDictionry+LocallyDereferenceable.swift +++ b/Sources/OpenAPIKit30/Utility/OrderedDictionry+LocallyDereferenceable.swift @@ -1,12 +1,14 @@ // // OrderedDictionry+LocallyDereferenceable.swift // -// -// Created by Alberto Lagos on 11-09-23. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif /// A Swift extension for dereferencing an `OrderedDictionary` conforming to the `LocallyDereferenceable` protocol. /// diff --git a/Sources/OpenAPIKit30/XML.swift b/Sources/OpenAPIKit30/XML.swift index f7488c3094..43d5c1df13 100644 --- a/Sources/OpenAPIKit30/XML.swift +++ b/Sources/OpenAPIKit30/XML.swift @@ -1,12 +1,14 @@ // // XML.swift // -// -// Created by Mathew Polzin on 1/15/20. -// import OpenAPIKitCore + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension OpenAPI { /// OpenAPI Spec "XML Object" diff --git a/Sources/OpenAPIKitCore/AnyCodable/AnyCodable.swift b/Sources/OpenAPIKitCore/AnyCodable/AnyCodable.swift index 32c8c018f8..5bfb6be6f3 100644 --- a/Sources/OpenAPIKitCore/AnyCodable/AnyCodable.swift +++ b/Sources/OpenAPIKitCore/AnyCodable/AnyCodable.swift @@ -20,7 +20,11 @@ DEALINGS IN THE SOFTWARE. */ +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif /** A type-erased `Codable` value. diff --git a/Sources/OpenAPIKitCore/Shared/CallbackURL.swift b/Sources/OpenAPIKitCore/Shared/CallbackURL.swift index d828a4598d..9adbfbeae4 100644 --- a/Sources/OpenAPIKitCore/Shared/CallbackURL.swift +++ b/Sources/OpenAPIKitCore/Shared/CallbackURL.swift @@ -1,11 +1,12 @@ // // CallbackURL.swift // -// -// Created by Mathew Polzin on 12/19/22. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension Shared { /// A URL template where the placeholders are OpenAPI **Runtime Expressions** instead diff --git a/Sources/OpenAPIKitCore/Shared/ComponentKey.swift b/Sources/OpenAPIKitCore/Shared/ComponentKey.swift index 73120c7ef2..0e536aa07d 100644 --- a/Sources/OpenAPIKitCore/Shared/ComponentKey.swift +++ b/Sources/OpenAPIKitCore/Shared/ComponentKey.swift @@ -1,11 +1,12 @@ // // ComponentKey.swift // -// -// Created by Mathew Polzin on 12/17/22. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension Shared { /// A key for one of the component dictionaries. diff --git a/Sources/OpenAPIKitCore/Shared/SharedOAuthFlows.swift b/Sources/OpenAPIKitCore/Shared/SharedOAuthFlows.swift index ea29468c20..e7ea523978 100644 --- a/Sources/OpenAPIKitCore/Shared/SharedOAuthFlows.swift +++ b/Sources/OpenAPIKitCore/Shared/SharedOAuthFlows.swift @@ -1,11 +1,12 @@ // // SharedOAuthFlows.swift // -// -// Created by Mathew Polzin on 1/23/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension Shared { public enum OAuthFlows {} diff --git a/Sources/OpenAPIKitCore/URLTemplate/URLTemplate.swift b/Sources/OpenAPIKitCore/URLTemplate/URLTemplate.swift index 164549d3b5..5a1cb2fa9c 100644 --- a/Sources/OpenAPIKitCore/URLTemplate/URLTemplate.swift +++ b/Sources/OpenAPIKitCore/URLTemplate/URLTemplate.swift @@ -1,11 +1,12 @@ // // URLTemplate.swift // -// -// Created by Mathew Polzin on 8/13/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif /// A URL that may contain variable placeholders. /// diff --git a/Sources/OpenAPIKitCore/Utility/Container+DecodeURLAsString.swift b/Sources/OpenAPIKitCore/Utility/Container+DecodeURLAsString.swift index 44da4a76aa..7cf34dd4e2 100644 --- a/Sources/OpenAPIKitCore/Utility/Container+DecodeURLAsString.swift +++ b/Sources/OpenAPIKitCore/Utility/Container+DecodeURLAsString.swift @@ -1,11 +1,12 @@ // // Container+DecodeURLAsString.swift // -// -// Created by Mathew Polzin on 7/5/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif extension KeyedDecodingContainerProtocol { internal func decodeURLAsString(forKey key: Self.Key) throws -> URL { diff --git a/Tests/EitherTests/EitherTests.swift b/Tests/EitherTests/EitherTests.swift index f13bf7c58d..59b9e2675b 100644 --- a/Tests/EitherTests/EitherTests.swift +++ b/Tests/EitherTests/EitherTests.swift @@ -2,11 +2,15 @@ // EitherTests.swift // OpenAPIKit - EitherTests // -// Created by Mathew Polzin on 11/23/18. -// import XCTest + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + @testable import OpenAPIKitCore // MARK: - init diff --git a/Tests/OpenAPIKit30ErrorReportingTests/ComponentErrorTests.swift b/Tests/OpenAPIKit30ErrorReportingTests/ComponentErrorTests.swift index 14ca004929..38cbe9013f 100644 --- a/Tests/OpenAPIKit30ErrorReportingTests/ComponentErrorTests.swift +++ b/Tests/OpenAPIKit30ErrorReportingTests/ComponentErrorTests.swift @@ -1,11 +1,13 @@ // // ComponentErrorTests.swift // -// -// Created by Mathew Polzin on 2/23/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 @preconcurrency import Yams diff --git a/Tests/OpenAPIKit30ErrorReportingTests/DocumentErrorTests.swift b/Tests/OpenAPIKit30ErrorReportingTests/DocumentErrorTests.swift index 1840cee137..febe4f243c 100644 --- a/Tests/OpenAPIKit30ErrorReportingTests/DocumentErrorTests.swift +++ b/Tests/OpenAPIKit30ErrorReportingTests/DocumentErrorTests.swift @@ -1,11 +1,13 @@ // // DocumentErrorTests.swift // -// -// Created by Mathew Polzin on 2/23/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 @preconcurrency import Yams diff --git a/Tests/OpenAPIKit30ErrorReportingTests/Helpers.swift b/Tests/OpenAPIKit30ErrorReportingTests/Helpers.swift index 25933afe22..141656d0f9 100644 --- a/Tests/OpenAPIKit30ErrorReportingTests/Helpers.swift +++ b/Tests/OpenAPIKit30ErrorReportingTests/Helpers.swift @@ -1,11 +1,13 @@ // // Helpers.swift // -// -// Created by Mathew Polzin on 2/23/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + @preconcurrency import Yams var testDecoder: YAMLDecoder { YAMLDecoder() } diff --git a/Tests/OpenAPIKit30ErrorReportingTests/JSONReferenceErrorTests.swift b/Tests/OpenAPIKit30ErrorReportingTests/JSONReferenceErrorTests.swift index 143f88c9dd..52dc4ab859 100644 --- a/Tests/OpenAPIKit30ErrorReportingTests/JSONReferenceErrorTests.swift +++ b/Tests/OpenAPIKit30ErrorReportingTests/JSONReferenceErrorTests.swift @@ -1,11 +1,13 @@ // // JSONReferenceErrorTests.swift // -// -// Created by Mathew Polzin on 2/27/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 @preconcurrency import Yams diff --git a/Tests/OpenAPIKit30ErrorReportingTests/OperationErrorTests.swift b/Tests/OpenAPIKit30ErrorReportingTests/OperationErrorTests.swift index 94f876bb68..1a576c9ed0 100644 --- a/Tests/OpenAPIKit30ErrorReportingTests/OperationErrorTests.swift +++ b/Tests/OpenAPIKit30ErrorReportingTests/OperationErrorTests.swift @@ -1,11 +1,13 @@ // // OperationErrorTests.swift // -// -// Created by Mathew Polzin on 2/23/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 @preconcurrency import Yams diff --git a/Tests/OpenAPIKit30ErrorReportingTests/PathsErrorTests.swift b/Tests/OpenAPIKit30ErrorReportingTests/PathsErrorTests.swift index c908d839c0..57cc2ddc6c 100644 --- a/Tests/OpenAPIKit30ErrorReportingTests/PathsErrorTests.swift +++ b/Tests/OpenAPIKit30ErrorReportingTests/PathsErrorTests.swift @@ -1,11 +1,13 @@ // // PathsErrorTests.swift // -// -// Created by Mathew Polzin on 2/23/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 @preconcurrency import Yams diff --git a/Tests/OpenAPIKit30ErrorReportingTests/RequestContentMapErrorTests.swift b/Tests/OpenAPIKit30ErrorReportingTests/RequestContentMapErrorTests.swift index 4c353ce09b..04333bff2d 100644 --- a/Tests/OpenAPIKit30ErrorReportingTests/RequestContentMapErrorTests.swift +++ b/Tests/OpenAPIKit30ErrorReportingTests/RequestContentMapErrorTests.swift @@ -1,11 +1,13 @@ // // RequestContentMapErrorTests.swift // -// -// Created by Mathew Polzin on 2/24/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 @preconcurrency import Yams diff --git a/Tests/OpenAPIKit30ErrorReportingTests/RequestContentSchemaErrorTests.swift b/Tests/OpenAPIKit30ErrorReportingTests/RequestContentSchemaErrorTests.swift index 6aec769f8c..85b3a880db 100644 --- a/Tests/OpenAPIKit30ErrorReportingTests/RequestContentSchemaErrorTests.swift +++ b/Tests/OpenAPIKit30ErrorReportingTests/RequestContentSchemaErrorTests.swift @@ -1,11 +1,13 @@ // // RequestContentSchemaErrorTests.swift // -// -// Created by Mathew Polzin on 2/25/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 @preconcurrency import Yams diff --git a/Tests/OpenAPIKit30ErrorReportingTests/RequestErrorTests.swift b/Tests/OpenAPIKit30ErrorReportingTests/RequestErrorTests.swift index 6cb3a10c4a..e66b37d451 100644 --- a/Tests/OpenAPIKit30ErrorReportingTests/RequestErrorTests.swift +++ b/Tests/OpenAPIKit30ErrorReportingTests/RequestErrorTests.swift @@ -1,11 +1,13 @@ // // RequestErrorTests.swift // -// -// Created by Mathew Polzin on 2/24/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 @preconcurrency import Yams diff --git a/Tests/OpenAPIKit30ErrorReportingTests/ResponseErrorTests.swift b/Tests/OpenAPIKit30ErrorReportingTests/ResponseErrorTests.swift index 5077fb7c3f..3ce11d37bb 100644 --- a/Tests/OpenAPIKit30ErrorReportingTests/ResponseErrorTests.swift +++ b/Tests/OpenAPIKit30ErrorReportingTests/ResponseErrorTests.swift @@ -1,11 +1,13 @@ // // ResponseErrorTests.swift // -// -// Created by Mathew Polzin on 2/25/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 @preconcurrency import Yams diff --git a/Tests/OpenAPIKit30ErrorReportingTests/SchemaErrorTests.swift b/Tests/OpenAPIKit30ErrorReportingTests/SchemaErrorTests.swift index be372a3b86..a9082b6d61 100644 --- a/Tests/OpenAPIKit30ErrorReportingTests/SchemaErrorTests.swift +++ b/Tests/OpenAPIKit30ErrorReportingTests/SchemaErrorTests.swift @@ -1,11 +1,13 @@ // // SchemaErrorTests.swift // -// -// Created by Mathew Polzin. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 @preconcurrency import Yams diff --git a/Tests/OpenAPIKit30ErrorReportingTests/SecuritySchemeErrorTests.swift b/Tests/OpenAPIKit30ErrorReportingTests/SecuritySchemeErrorTests.swift index 3728c098c6..33f35af164 100644 --- a/Tests/OpenAPIKit30ErrorReportingTests/SecuritySchemeErrorTests.swift +++ b/Tests/OpenAPIKit30ErrorReportingTests/SecuritySchemeErrorTests.swift @@ -1,11 +1,13 @@ // // SecuritySchemeErrorTests.swift // -// -// Created by Mathew Polzin on 2/23/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 @preconcurrency import Yams diff --git a/Tests/OpenAPIKit30RealSpecSuite/GitHubAPITests.swift b/Tests/OpenAPIKit30RealSpecSuite/GitHubAPITests.swift index 3a23f3c1ae..ef81217d8f 100644 --- a/Tests/OpenAPIKit30RealSpecSuite/GitHubAPITests.swift +++ b/Tests/OpenAPIKit30RealSpecSuite/GitHubAPITests.swift @@ -1,14 +1,17 @@ // // GitHubAPITests.swift // -// -// Created by Mathew Polzin on 7/28/20. -// import XCTest import OpenAPIKit30 @preconcurrency import Yams + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + #if canImport(FoundationNetworking) import FoundationNetworking #endif diff --git a/Tests/OpenAPIKit30RealSpecSuite/GoogleBooksAPITests.swift b/Tests/OpenAPIKit30RealSpecSuite/GoogleBooksAPITests.swift index 76ccce43ee..6d2b67cce1 100644 --- a/Tests/OpenAPIKit30RealSpecSuite/GoogleBooksAPITests.swift +++ b/Tests/OpenAPIKit30RealSpecSuite/GoogleBooksAPITests.swift @@ -1,14 +1,17 @@ // // GoogleBooksAPITests.swift // -// -// Created by Mathew Polzin on 2/17/20. -// import XCTest import OpenAPIKit30 @preconcurrency import Yams + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + #if canImport(FoundationNetworking) import FoundationNetworking #endif diff --git a/Tests/OpenAPIKit30RealSpecSuite/PetStoreAPITests.swift b/Tests/OpenAPIKit30RealSpecSuite/PetStoreAPITests.swift index 2effe1309d..66dbdb228b 100644 --- a/Tests/OpenAPIKit30RealSpecSuite/PetStoreAPITests.swift +++ b/Tests/OpenAPIKit30RealSpecSuite/PetStoreAPITests.swift @@ -1,14 +1,17 @@ // // PetStoreAPITests.swift // -// -// Created by Mathew Polzin on 2/17/20. -// import XCTest import OpenAPIKit30 @preconcurrency import Yams + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + #if canImport(FoundationNetworking) import FoundationNetworking #endif diff --git a/Tests/OpenAPIKit30RealSpecSuite/SwaggerDocSamplesTests.swift b/Tests/OpenAPIKit30RealSpecSuite/SwaggerDocSamplesTests.swift index c4455dd69f..ba2f24a95f 100644 --- a/Tests/OpenAPIKit30RealSpecSuite/SwaggerDocSamplesTests.swift +++ b/Tests/OpenAPIKit30RealSpecSuite/SwaggerDocSamplesTests.swift @@ -1,11 +1,13 @@ // // SwaggerDocSamplesTests.swift // -// -// Created by Mathew Polzin on 7/25/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 @preconcurrency import Yams diff --git a/Tests/OpenAPIKit30RealSpecSuite/TomTomAPITests.swift b/Tests/OpenAPIKit30RealSpecSuite/TomTomAPITests.swift index 1f717e23fd..12117d8616 100644 --- a/Tests/OpenAPIKit30RealSpecSuite/TomTomAPITests.swift +++ b/Tests/OpenAPIKit30RealSpecSuite/TomTomAPITests.swift @@ -1,14 +1,17 @@ // // TomTomAPITests.swift // -// -// Created by Mathew Polzin on 2/17/20. -// import XCTest import OpenAPIKit30 @preconcurrency import Yams + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + #if canImport(FoundationNetworking) import FoundationNetworking #endif diff --git a/Tests/OpenAPIKit30Tests/Content/ContentTests.swift b/Tests/OpenAPIKit30Tests/Content/ContentTests.swift index 7107d43793..5f0fc1ce5e 100644 --- a/Tests/OpenAPIKit30Tests/Content/ContentTests.swift +++ b/Tests/OpenAPIKit30Tests/Content/ContentTests.swift @@ -2,10 +2,13 @@ // ContentTests.swift // OpenAPI // -// Created by Mathew Polzin on 7/5/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 diff --git a/Tests/OpenAPIKit30Tests/Content/DereferencedContentTests.swift b/Tests/OpenAPIKit30Tests/Content/DereferencedContentTests.swift index 275fd9ddf3..97a1b21bd8 100644 --- a/Tests/OpenAPIKit30Tests/Content/DereferencedContentTests.swift +++ b/Tests/OpenAPIKit30Tests/Content/DereferencedContentTests.swift @@ -1,11 +1,13 @@ // // DereferencedContentTests.swift // -// -// Created by Mathew Polzin on 6/21/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 diff --git a/Tests/OpenAPIKit30Tests/DiscriminatorTests.swift b/Tests/OpenAPIKit30Tests/DiscriminatorTests.swift index c3ab2e9e94..ee220a86ac 100644 --- a/Tests/OpenAPIKit30Tests/DiscriminatorTests.swift +++ b/Tests/OpenAPIKit30Tests/DiscriminatorTests.swift @@ -1,11 +1,13 @@ // // DiscriminatorTests.swift // -// -// Created by Mathew Polzin on 11/3/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import OpenAPIKit30 import XCTest diff --git a/Tests/OpenAPIKit30Tests/Document/DereferencedDocumentTests.swift b/Tests/OpenAPIKit30Tests/Document/DereferencedDocumentTests.swift index a1ea8115e6..bbdefa391a 100644 --- a/Tests/OpenAPIKit30Tests/Document/DereferencedDocumentTests.swift +++ b/Tests/OpenAPIKit30Tests/Document/DereferencedDocumentTests.swift @@ -1,11 +1,13 @@ // // DereferencedDocumentTests.swift // -// -// Created by Mathew Polzin on 6/22/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 diff --git a/Tests/OpenAPIKit30Tests/Document/DocumentTests.swift b/Tests/OpenAPIKit30Tests/Document/DocumentTests.swift index c0e81cbe9b..362c6db65a 100644 --- a/Tests/OpenAPIKit30Tests/Document/DocumentTests.swift +++ b/Tests/OpenAPIKit30Tests/Document/DocumentTests.swift @@ -1,11 +1,13 @@ // // DocumentTests.swift // -// -// Created by Mathew Polzin on 10/27/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import OpenAPIKit30 import XCTest diff --git a/Tests/OpenAPIKit30Tests/Document/ExternalDereferencingDocumentTests.swift b/Tests/OpenAPIKit30Tests/Document/ExternalDereferencingDocumentTests.swift index 00af97ac5e..a12da29fc7 100644 --- a/Tests/OpenAPIKit30Tests/Document/ExternalDereferencingDocumentTests.swift +++ b/Tests/OpenAPIKit30Tests/Document/ExternalDereferencingDocumentTests.swift @@ -2,7 +2,12 @@ // ExternalDereferencingDocumentTests.swift // +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + @preconcurrency import Yams import OpenAPIKit30 import XCTest diff --git a/Tests/OpenAPIKit30Tests/EaseOfUseTests.swift b/Tests/OpenAPIKit30Tests/EaseOfUseTests.swift index 05db2fcc1b..93a2acd0bd 100644 --- a/Tests/OpenAPIKit30Tests/EaseOfUseTests.swift +++ b/Tests/OpenAPIKit30Tests/EaseOfUseTests.swift @@ -1,11 +1,13 @@ // // DeclarativeEaseOfUseTests.swift // -// -// Created by Mathew Polzin on 10/27/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import OpenAPIKit30 import XCTest diff --git a/Tests/OpenAPIKit30Tests/ExampleTests.swift b/Tests/OpenAPIKit30Tests/ExampleTests.swift index 2343eaa236..33174e5442 100644 --- a/Tests/OpenAPIKit30Tests/ExampleTests.swift +++ b/Tests/OpenAPIKit30Tests/ExampleTests.swift @@ -1,11 +1,13 @@ // // ExampleTests.swift // -// -// Created by Mathew Polzin on 10/6/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import OpenAPIKit30 import XCTest diff --git a/Tests/OpenAPIKit30Tests/JSONReferenceTests.swift b/Tests/OpenAPIKit30Tests/JSONReferenceTests.swift index 25332acd58..f30622660f 100644 --- a/Tests/OpenAPIKit30Tests/JSONReferenceTests.swift +++ b/Tests/OpenAPIKit30Tests/JSONReferenceTests.swift @@ -1,11 +1,13 @@ // // JSONReferenceTests.swift // -// -// Created by Mathew Polzin on 7/4/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 diff --git a/Tests/OpenAPIKit30Tests/LinkTests.swift b/Tests/OpenAPIKit30Tests/LinkTests.swift index 7c922f4208..2d544653d9 100644 --- a/Tests/OpenAPIKit30Tests/LinkTests.swift +++ b/Tests/OpenAPIKit30Tests/LinkTests.swift @@ -1,12 +1,15 @@ // // LinkTests.swift // -// -// Created by Mathew Polzin on 1/23/20. -// import OpenAPIKit30 + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest final class LinkTests: XCTestCase { diff --git a/Tests/OpenAPIKit30Tests/Request/RequestTests.swift b/Tests/OpenAPIKit30Tests/Request/RequestTests.swift index e0cc209746..324cd71f00 100644 --- a/Tests/OpenAPIKit30Tests/Request/RequestTests.swift +++ b/Tests/OpenAPIKit30Tests/Request/RequestTests.swift @@ -2,10 +2,13 @@ // RequestTests.swift // OpenAPI // -// Created by Mathew Polzin on 7/4/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 diff --git a/Tests/OpenAPIKit30Tests/Response/ResponseTests.swift b/Tests/OpenAPIKit30Tests/Response/ResponseTests.swift index f3199766e7..bcc62c9c91 100644 --- a/Tests/OpenAPIKit30Tests/Response/ResponseTests.swift +++ b/Tests/OpenAPIKit30Tests/Response/ResponseTests.swift @@ -2,10 +2,13 @@ // ResponseTests.swift // OpenAPI // -// Created by Mathew Polzin on 7/5/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 diff --git a/Tests/OpenAPIKit30Tests/Result+ValueTests.swift b/Tests/OpenAPIKit30Tests/Result+ValueTests.swift index 67ef087f21..1da30db2ca 100644 --- a/Tests/OpenAPIKit30Tests/Result+ValueTests.swift +++ b/Tests/OpenAPIKit30Tests/Result+ValueTests.swift @@ -2,10 +2,13 @@ // Result+ValueTests.swift // OpenAPIKitTests // -// Created by Mathew Polzin on 8/25/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest @testable import OpenAPIKit30 diff --git a/Tests/OpenAPIKit30Tests/Schema Conformances/SwiftPrimitiveTypes+OpenAPITests.swift b/Tests/OpenAPIKit30Tests/Schema Conformances/SwiftPrimitiveTypes+OpenAPITests.swift index b167e4784c..cdc032676a 100644 --- a/Tests/OpenAPIKit30Tests/Schema Conformances/SwiftPrimitiveTypes+OpenAPITests.swift +++ b/Tests/OpenAPIKit30Tests/Schema Conformances/SwiftPrimitiveTypes+OpenAPITests.swift @@ -2,10 +2,13 @@ // SwiftPrimitiveTypes+OpenAPITests.swift // OpenAPIKitTests // -// Created by Mathew Polzin on 8/25/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 diff --git a/Tests/OpenAPIKit30Tests/Schema Object/DereferencedSchemaObjectTests.swift b/Tests/OpenAPIKit30Tests/Schema Object/DereferencedSchemaObjectTests.swift index 01593dacac..8e69d58dd2 100644 --- a/Tests/OpenAPIKit30Tests/Schema Object/DereferencedSchemaObjectTests.swift +++ b/Tests/OpenAPIKit30Tests/Schema Object/DereferencedSchemaObjectTests.swift @@ -1,11 +1,13 @@ // // DereferencedSchemaObjectTests.swift // -// -// Created by Mathew Polzin on 6/21/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 diff --git a/Tests/OpenAPIKit30Tests/Schema Object/JSONSchemaTests.swift b/Tests/OpenAPIKit30Tests/Schema Object/JSONSchemaTests.swift index 82c8243387..241d12c73c 100644 --- a/Tests/OpenAPIKit30Tests/Schema Object/JSONSchemaTests.swift +++ b/Tests/OpenAPIKit30Tests/Schema Object/JSONSchemaTests.swift @@ -1,11 +1,13 @@ // // JSONSchemaTests.swift // -// -// Created by Mathew Polzin on 6/23/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 diff --git a/Tests/OpenAPIKit30Tests/Schema Object/SchemaFragmentCombiningTests.swift b/Tests/OpenAPIKit30Tests/Schema Object/SchemaFragmentCombiningTests.swift index d2fc716ea4..15ca7c739b 100644 --- a/Tests/OpenAPIKit30Tests/Schema Object/SchemaFragmentCombiningTests.swift +++ b/Tests/OpenAPIKit30Tests/Schema Object/SchemaFragmentCombiningTests.swift @@ -1,11 +1,13 @@ // // SchemaFragmentCombiningTests.swift // -// -// Created by Mathew Polzin on 8/2/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 diff --git a/Tests/OpenAPIKit30Tests/Schema Object/SchemaFragmentTests.swift b/Tests/OpenAPIKit30Tests/Schema Object/SchemaFragmentTests.swift index 13e4691a37..d1272115d8 100644 --- a/Tests/OpenAPIKit30Tests/Schema Object/SchemaFragmentTests.swift +++ b/Tests/OpenAPIKit30Tests/Schema Object/SchemaFragmentTests.swift @@ -1,11 +1,13 @@ // // SchemaFragmentTests.swift // -// -// Created by Mathew Polzin on 4/21/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import OpenAPIKit30 import XCTest diff --git a/Tests/OpenAPIKit30Tests/Schema Object/SchemaObjectInternalTests.swift b/Tests/OpenAPIKit30Tests/Schema Object/SchemaObjectInternalTests.swift index 59de762f17..69142ac360 100644 --- a/Tests/OpenAPIKit30Tests/Schema Object/SchemaObjectInternalTests.swift +++ b/Tests/OpenAPIKit30Tests/Schema Object/SchemaObjectInternalTests.swift @@ -2,10 +2,13 @@ // SchemaObjectInternalTests.swift // OpenAPIKitTests // -// Created by Mathew Polzin on 8/25/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest @testable import OpenAPIKit30 diff --git a/Tests/OpenAPIKit30Tests/Schema Object/SchemaObjectYamsTests.swift b/Tests/OpenAPIKit30Tests/Schema Object/SchemaObjectYamsTests.swift index c892dab9d5..093de105c3 100644 --- a/Tests/OpenAPIKit30Tests/Schema Object/SchemaObjectYamsTests.swift +++ b/Tests/OpenAPIKit30Tests/Schema Object/SchemaObjectYamsTests.swift @@ -1,16 +1,18 @@ // // SchemaObjectYamsTests.swift // -// -// Created by Mathew Polzin on 4/22/20. -// /// /// This file exists to facilitate regression tests for Yams-specific problems encountered /// and fixed. /// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 @preconcurrency import Yams diff --git a/Tests/OpenAPIKit30Tests/ServerTests.swift b/Tests/OpenAPIKit30Tests/ServerTests.swift index 0b670697e7..e7f4db5288 100644 --- a/Tests/OpenAPIKit30Tests/ServerTests.swift +++ b/Tests/OpenAPIKit30Tests/ServerTests.swift @@ -2,10 +2,13 @@ // ServerTests.swift // OpenAPIKitTests // -// Created by Mathew Polzin on 8/25/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 diff --git a/Tests/OpenAPIKit30Tests/TestHelpers.swift b/Tests/OpenAPIKit30Tests/TestHelpers.swift index dfb2abb4ca..9c0bfce0fb 100644 --- a/Tests/OpenAPIKit30Tests/TestHelpers.swift +++ b/Tests/OpenAPIKit30Tests/TestHelpers.swift @@ -1,11 +1,13 @@ // // TestHelpers.swift // -// -// Created by Mathew Polzin on 6/23/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + @preconcurrency import Yams import XCTest diff --git a/Tests/OpenAPIKit30Tests/Validator/BuiltinValidationTests.swift b/Tests/OpenAPIKit30Tests/Validator/BuiltinValidationTests.swift index 5cdc98d79d..eedb41243e 100644 --- a/Tests/OpenAPIKit30Tests/Validator/BuiltinValidationTests.swift +++ b/Tests/OpenAPIKit30Tests/Validator/BuiltinValidationTests.swift @@ -1,11 +1,13 @@ // // BuiltinValidationTests.swift // -// -// Created by Mathew Polzin on 6/3/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 diff --git a/Tests/OpenAPIKit30Tests/Validator/Validation+ConvenienceTests.swift b/Tests/OpenAPIKit30Tests/Validator/Validation+ConvenienceTests.swift index 91f1541457..c491c7279b 100644 --- a/Tests/OpenAPIKit30Tests/Validator/Validation+ConvenienceTests.swift +++ b/Tests/OpenAPIKit30Tests/Validator/Validation+ConvenienceTests.swift @@ -1,11 +1,13 @@ // // Validation+ConvenienceTests.swift // -// -// Created by Mathew Polzin on 6/5/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest @testable import OpenAPIKit30 diff --git a/Tests/OpenAPIKit30Tests/Validator/ValidationTests.swift b/Tests/OpenAPIKit30Tests/Validator/ValidationTests.swift index 4d71570158..74d658514a 100644 --- a/Tests/OpenAPIKit30Tests/Validator/ValidationTests.swift +++ b/Tests/OpenAPIKit30Tests/Validator/ValidationTests.swift @@ -1,11 +1,13 @@ // // ValidationTests.swift // -// -// Created by Mathew Polzin on 6/3/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest @testable import OpenAPIKit30 diff --git a/Tests/OpenAPIKit30Tests/Validator/ValidatorTests.swift b/Tests/OpenAPIKit30Tests/Validator/ValidatorTests.swift index dfd584fd80..f131d51824 100644 --- a/Tests/OpenAPIKit30Tests/Validator/ValidatorTests.swift +++ b/Tests/OpenAPIKit30Tests/Validator/ValidatorTests.swift @@ -1,11 +1,13 @@ // // ValidatorTests.swift // -// -// Created by Mathew Polzin on 6/2/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit30 diff --git a/Tests/OpenAPIKitCoreTests/TestHelpers.swift b/Tests/OpenAPIKitCoreTests/TestHelpers.swift index ed75573fba..d8ce785d73 100644 --- a/Tests/OpenAPIKitCoreTests/TestHelpers.swift +++ b/Tests/OpenAPIKitCoreTests/TestHelpers.swift @@ -1,11 +1,13 @@ // // TestHelpers.swift // -// -// Created by Mathew Polzin on 6/23/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest fileprivate func foundationTestEncoder() -> JSONEncoder { diff --git a/Tests/OpenAPIKitCoreTests/URLTemplate/URLTemplateTests.swift b/Tests/OpenAPIKitCoreTests/URLTemplate/URLTemplateTests.swift index a0f9c12b68..230b720b05 100644 --- a/Tests/OpenAPIKitCoreTests/URLTemplate/URLTemplateTests.swift +++ b/Tests/OpenAPIKitCoreTests/URLTemplate/URLTemplateTests.swift @@ -1,11 +1,13 @@ // // URLTemplateTests.swift // -// -// Created by Mathew Polzin on 8/13/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import OpenAPIKitCore import XCTest diff --git a/Tests/OpenAPIKitErrorReportingTests/ComponentErrorTests.swift b/Tests/OpenAPIKitErrorReportingTests/ComponentErrorTests.swift index 76ed176f32..d2895c23fc 100644 --- a/Tests/OpenAPIKitErrorReportingTests/ComponentErrorTests.swift +++ b/Tests/OpenAPIKitErrorReportingTests/ComponentErrorTests.swift @@ -1,11 +1,13 @@ // // ComponentErrorTests.swift // -// -// Created by Mathew Polzin on 2/23/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit @preconcurrency import Yams diff --git a/Tests/OpenAPIKitErrorReportingTests/DocumentErrorTests.swift b/Tests/OpenAPIKitErrorReportingTests/DocumentErrorTests.swift index 420539a411..da3f525e9d 100644 --- a/Tests/OpenAPIKitErrorReportingTests/DocumentErrorTests.swift +++ b/Tests/OpenAPIKitErrorReportingTests/DocumentErrorTests.swift @@ -1,11 +1,13 @@ // // DocumentErrorTests.swift // -// -// Created by Mathew Polzin on 2/23/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit @preconcurrency import Yams diff --git a/Tests/OpenAPIKitErrorReportingTests/Helpers.swift b/Tests/OpenAPIKitErrorReportingTests/Helpers.swift index 25933afe22..141656d0f9 100644 --- a/Tests/OpenAPIKitErrorReportingTests/Helpers.swift +++ b/Tests/OpenAPIKitErrorReportingTests/Helpers.swift @@ -1,11 +1,13 @@ // // Helpers.swift // -// -// Created by Mathew Polzin on 2/23/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + @preconcurrency import Yams var testDecoder: YAMLDecoder { YAMLDecoder() } diff --git a/Tests/OpenAPIKitErrorReportingTests/JSONReferenceErrorTests.swift b/Tests/OpenAPIKitErrorReportingTests/JSONReferenceErrorTests.swift index bfdbe0e127..48eddeec14 100644 --- a/Tests/OpenAPIKitErrorReportingTests/JSONReferenceErrorTests.swift +++ b/Tests/OpenAPIKitErrorReportingTests/JSONReferenceErrorTests.swift @@ -1,11 +1,13 @@ // // JSONReferenceErrorTests.swift // -// -// Created by Mathew Polzin on 2/27/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit @preconcurrency import Yams diff --git a/Tests/OpenAPIKitErrorReportingTests/OperationErrorTests.swift b/Tests/OpenAPIKitErrorReportingTests/OperationErrorTests.swift index d7e0129e2b..254678b51b 100644 --- a/Tests/OpenAPIKitErrorReportingTests/OperationErrorTests.swift +++ b/Tests/OpenAPIKitErrorReportingTests/OperationErrorTests.swift @@ -1,11 +1,13 @@ // // OperationErrorTests.swift // -// -// Created by Mathew Polzin on 2/23/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit @preconcurrency import Yams diff --git a/Tests/OpenAPIKitErrorReportingTests/PathsErrorTests.swift b/Tests/OpenAPIKitErrorReportingTests/PathsErrorTests.swift index e685b55452..4824a32b93 100644 --- a/Tests/OpenAPIKitErrorReportingTests/PathsErrorTests.swift +++ b/Tests/OpenAPIKitErrorReportingTests/PathsErrorTests.swift @@ -1,11 +1,13 @@ // // PathsErrorTests.swift // -// -// Created by Mathew Polzin on 2/23/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit @preconcurrency import Yams diff --git a/Tests/OpenAPIKitErrorReportingTests/RequestContentMapErrorTests.swift b/Tests/OpenAPIKitErrorReportingTests/RequestContentMapErrorTests.swift index c5e2518181..3e87a8de3e 100644 --- a/Tests/OpenAPIKitErrorReportingTests/RequestContentMapErrorTests.swift +++ b/Tests/OpenAPIKitErrorReportingTests/RequestContentMapErrorTests.swift @@ -1,11 +1,13 @@ // // RequestContentMapErrorTests.swift // -// -// Created by Mathew Polzin on 2/24/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit @preconcurrency import Yams diff --git a/Tests/OpenAPIKitErrorReportingTests/RequestContentSchemaErrorTests.swift b/Tests/OpenAPIKitErrorReportingTests/RequestContentSchemaErrorTests.swift index 17690166d7..c5a4d92ed9 100644 --- a/Tests/OpenAPIKitErrorReportingTests/RequestContentSchemaErrorTests.swift +++ b/Tests/OpenAPIKitErrorReportingTests/RequestContentSchemaErrorTests.swift @@ -1,11 +1,13 @@ // // RequestContentSchemaErrorTests.swift // -// -// Created by Mathew Polzin on 2/25/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit @preconcurrency import Yams diff --git a/Tests/OpenAPIKitErrorReportingTests/RequestErrorTests.swift b/Tests/OpenAPIKitErrorReportingTests/RequestErrorTests.swift index 184349ee61..599ecf3f22 100644 --- a/Tests/OpenAPIKitErrorReportingTests/RequestErrorTests.swift +++ b/Tests/OpenAPIKitErrorReportingTests/RequestErrorTests.swift @@ -1,11 +1,13 @@ // // RequestErrorTests.swift // -// -// Created by Mathew Polzin on 2/24/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit @preconcurrency import Yams diff --git a/Tests/OpenAPIKitErrorReportingTests/ResponseErrorTests.swift b/Tests/OpenAPIKitErrorReportingTests/ResponseErrorTests.swift index ff178666a4..a969778962 100644 --- a/Tests/OpenAPIKitErrorReportingTests/ResponseErrorTests.swift +++ b/Tests/OpenAPIKitErrorReportingTests/ResponseErrorTests.swift @@ -1,11 +1,13 @@ // // ResponseErrorTests.swift // -// -// Created by Mathew Polzin on 2/25/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit @preconcurrency import Yams diff --git a/Tests/OpenAPIKitErrorReportingTests/SchemaErrorTests.swift b/Tests/OpenAPIKitErrorReportingTests/SchemaErrorTests.swift index 572efec6fa..7f0e430217 100644 --- a/Tests/OpenAPIKitErrorReportingTests/SchemaErrorTests.swift +++ b/Tests/OpenAPIKitErrorReportingTests/SchemaErrorTests.swift @@ -1,11 +1,13 @@ // // SchemaErrorTests.swift // -// -// Created by Mathew Polzin. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit @preconcurrency import Yams diff --git a/Tests/OpenAPIKitErrorReportingTests/SecuritySchemeErrorTests.swift b/Tests/OpenAPIKitErrorReportingTests/SecuritySchemeErrorTests.swift index d2b451f754..91fa70aaff 100644 --- a/Tests/OpenAPIKitErrorReportingTests/SecuritySchemeErrorTests.swift +++ b/Tests/OpenAPIKitErrorReportingTests/SecuritySchemeErrorTests.swift @@ -1,11 +1,13 @@ // // SecuritySchemeErrorTests.swift // -// -// Created by Mathew Polzin on 2/23/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit @preconcurrency import Yams diff --git a/Tests/OpenAPIKitRealSpecSuite/TemplateAPITests.swift b/Tests/OpenAPIKitRealSpecSuite/TemplateAPITests.swift index bfbda7d5db..41c2bfe930 100644 --- a/Tests/OpenAPIKitRealSpecSuite/TemplateAPITests.swift +++ b/Tests/OpenAPIKitRealSpecSuite/TemplateAPITests.swift @@ -1,9 +1,6 @@ // // GitHubAPITests.swift // -// -// Created by Mathew Polzin on 7/28/20. -// /** @@ -18,7 +15,13 @@ import XCTest import OpenAPIKit @preconcurrency import Yams + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + #if canImport(FoundationNetworking) import FoundationNetworking #endif diff --git a/Tests/OpenAPIKitTests/Content/ContentTests.swift b/Tests/OpenAPIKitTests/Content/ContentTests.swift index d20e2dd976..28474d083b 100644 --- a/Tests/OpenAPIKitTests/Content/ContentTests.swift +++ b/Tests/OpenAPIKitTests/Content/ContentTests.swift @@ -2,10 +2,13 @@ // ContentTests.swift // OpenAPI // -// Created by Mathew Polzin on 7/5/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit diff --git a/Tests/OpenAPIKitTests/Content/DereferencedContentTests.swift b/Tests/OpenAPIKitTests/Content/DereferencedContentTests.swift index 7ae97e8b1e..2429fb9e01 100644 --- a/Tests/OpenAPIKitTests/Content/DereferencedContentTests.swift +++ b/Tests/OpenAPIKitTests/Content/DereferencedContentTests.swift @@ -1,11 +1,13 @@ // // DereferencedContentTests.swift // -// -// Created by Mathew Polzin on 6/21/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit diff --git a/Tests/OpenAPIKitTests/DiscriminatorTests.swift b/Tests/OpenAPIKitTests/DiscriminatorTests.swift index 5d1d555e79..13fecdc38e 100644 --- a/Tests/OpenAPIKitTests/DiscriminatorTests.swift +++ b/Tests/OpenAPIKitTests/DiscriminatorTests.swift @@ -1,11 +1,13 @@ // // DiscriminatorTests.swift // -// -// Created by Mathew Polzin on 11/3/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import OpenAPIKit import XCTest diff --git a/Tests/OpenAPIKitTests/Document/DereferencedDocumentTests.swift b/Tests/OpenAPIKitTests/Document/DereferencedDocumentTests.swift index 777b51e502..bed631ae73 100644 --- a/Tests/OpenAPIKitTests/Document/DereferencedDocumentTests.swift +++ b/Tests/OpenAPIKitTests/Document/DereferencedDocumentTests.swift @@ -1,11 +1,13 @@ // // DereferencedDocumentTests.swift // -// -// Created by Mathew Polzin on 6/22/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit diff --git a/Tests/OpenAPIKitTests/Document/DocumentTests.swift b/Tests/OpenAPIKitTests/Document/DocumentTests.swift index c515bac83d..147590f748 100644 --- a/Tests/OpenAPIKitTests/Document/DocumentTests.swift +++ b/Tests/OpenAPIKitTests/Document/DocumentTests.swift @@ -1,11 +1,13 @@ // // DocumentTests.swift // -// -// Created by Mathew Polzin on 10/27/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import OpenAPIKit import XCTest diff --git a/Tests/OpenAPIKitTests/Document/ExternalDereferencingDocumentTests.swift b/Tests/OpenAPIKitTests/Document/ExternalDereferencingDocumentTests.swift index bcb18f5648..6d3f1f2018 100644 --- a/Tests/OpenAPIKitTests/Document/ExternalDereferencingDocumentTests.swift +++ b/Tests/OpenAPIKitTests/Document/ExternalDereferencingDocumentTests.swift @@ -2,7 +2,12 @@ // ExternalDereferencingDocumentTests.swift // +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + @preconcurrency import Yams import OpenAPIKit import XCTest diff --git a/Tests/OpenAPIKitTests/EaseOfUseTests.swift b/Tests/OpenAPIKitTests/EaseOfUseTests.swift index ee476324ce..91cab5f6a6 100644 --- a/Tests/OpenAPIKitTests/EaseOfUseTests.swift +++ b/Tests/OpenAPIKitTests/EaseOfUseTests.swift @@ -1,11 +1,13 @@ // // DeclarativeEaseOfUseTests.swift // -// -// Created by Mathew Polzin on 10/27/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import OpenAPIKit import XCTest diff --git a/Tests/OpenAPIKitTests/ExampleTests.swift b/Tests/OpenAPIKitTests/ExampleTests.swift index 407e2a51dc..e1bae1c4f2 100644 --- a/Tests/OpenAPIKitTests/ExampleTests.swift +++ b/Tests/OpenAPIKitTests/ExampleTests.swift @@ -1,11 +1,13 @@ // // ExampleTests.swift // -// -// Created by Mathew Polzin on 10/6/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import OpenAPIKit import XCTest diff --git a/Tests/OpenAPIKitTests/JSONReferenceTests.swift b/Tests/OpenAPIKitTests/JSONReferenceTests.swift index 4587d47cf3..7ee1f98852 100644 --- a/Tests/OpenAPIKitTests/JSONReferenceTests.swift +++ b/Tests/OpenAPIKitTests/JSONReferenceTests.swift @@ -1,11 +1,13 @@ // // JSONReferenceTests.swift // -// -// Created by Mathew Polzin on 7/4/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit diff --git a/Tests/OpenAPIKitTests/LinkTests.swift b/Tests/OpenAPIKitTests/LinkTests.swift index 818e1ba9eb..c304e92610 100644 --- a/Tests/OpenAPIKitTests/LinkTests.swift +++ b/Tests/OpenAPIKitTests/LinkTests.swift @@ -1,12 +1,15 @@ // // LinkTests.swift // -// -// Created by Mathew Polzin on 1/23/20. -// import OpenAPIKit + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest final class LinkTests: XCTestCase { diff --git a/Tests/OpenAPIKitTests/OpenAPIReferenceTests.swift b/Tests/OpenAPIKitTests/OpenAPIReferenceTests.swift index 7e00d69954..5a39a8940a 100644 --- a/Tests/OpenAPIKitTests/OpenAPIReferenceTests.swift +++ b/Tests/OpenAPIKitTests/OpenAPIReferenceTests.swift @@ -1,11 +1,13 @@ // // JSONReferenceTests.swift // -// -// Created by Mathew Polzin on 7/4/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit diff --git a/Tests/OpenAPIKitTests/Path Item/PathItemTests.swift b/Tests/OpenAPIKitTests/Path Item/PathItemTests.swift index 367aff363a..c4cb22234d 100644 --- a/Tests/OpenAPIKitTests/Path Item/PathItemTests.swift +++ b/Tests/OpenAPIKitTests/Path Item/PathItemTests.swift @@ -1,13 +1,15 @@ // // PathItemTests.swift // -// -// Created by Mathew Polzin on 12/29/19. -// import XCTest import OpenAPIKit + +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif final class PathItemTests: XCTestCase { func test_initializePathComponents() { diff --git a/Tests/OpenAPIKitTests/Request/RequestTests.swift b/Tests/OpenAPIKitTests/Request/RequestTests.swift index 0d717b2df6..67d18b6347 100644 --- a/Tests/OpenAPIKitTests/Request/RequestTests.swift +++ b/Tests/OpenAPIKitTests/Request/RequestTests.swift @@ -2,10 +2,13 @@ // RequestTests.swift // OpenAPI // -// Created by Mathew Polzin on 7/4/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit diff --git a/Tests/OpenAPIKitTests/Response/ResponseTests.swift b/Tests/OpenAPIKitTests/Response/ResponseTests.swift index 1be7883653..9e69b21b71 100644 --- a/Tests/OpenAPIKitTests/Response/ResponseTests.swift +++ b/Tests/OpenAPIKitTests/Response/ResponseTests.swift @@ -2,10 +2,13 @@ // ResponseTests.swift // OpenAPI // -// Created by Mathew Polzin on 7/5/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit diff --git a/Tests/OpenAPIKitTests/Result+ValueTests.swift b/Tests/OpenAPIKitTests/Result+ValueTests.swift index a5880f8961..7525e61ac7 100644 --- a/Tests/OpenAPIKitTests/Result+ValueTests.swift +++ b/Tests/OpenAPIKitTests/Result+ValueTests.swift @@ -2,10 +2,13 @@ // Result+ValueTests.swift // OpenAPIKitTests // -// Created by Mathew Polzin on 8/25/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest @testable import OpenAPIKit diff --git a/Tests/OpenAPIKitTests/Schema Conformances/SwiftPrimitiveTypes+OpenAPITests.swift b/Tests/OpenAPIKitTests/Schema Conformances/SwiftPrimitiveTypes+OpenAPITests.swift index c41d3feb1a..3d7f8d771e 100644 --- a/Tests/OpenAPIKitTests/Schema Conformances/SwiftPrimitiveTypes+OpenAPITests.swift +++ b/Tests/OpenAPIKitTests/Schema Conformances/SwiftPrimitiveTypes+OpenAPITests.swift @@ -2,10 +2,13 @@ // SwiftPrimitiveTypes+OpenAPITests.swift // OpenAPIKitTests // -// Created by Mathew Polzin on 8/25/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit diff --git a/Tests/OpenAPIKitTests/Schema Object/DereferencedSchemaObjectTests.swift b/Tests/OpenAPIKitTests/Schema Object/DereferencedSchemaObjectTests.swift index ca1ea9e511..f3bf0acf4e 100644 --- a/Tests/OpenAPIKitTests/Schema Object/DereferencedSchemaObjectTests.swift +++ b/Tests/OpenAPIKitTests/Schema Object/DereferencedSchemaObjectTests.swift @@ -1,11 +1,13 @@ // // DereferencedSchemaObjectTests.swift // -// -// Created by Mathew Polzin on 6/21/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit diff --git a/Tests/OpenAPIKitTests/Schema Object/JSONSchemaTests.swift b/Tests/OpenAPIKitTests/Schema Object/JSONSchemaTests.swift index 3652e29d9d..06c0ab59e2 100644 --- a/Tests/OpenAPIKitTests/Schema Object/JSONSchemaTests.swift +++ b/Tests/OpenAPIKitTests/Schema Object/JSONSchemaTests.swift @@ -1,11 +1,13 @@ // // JSONSchemaTests.swift // -// -// Created by Mathew Polzin on 6/23/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit diff --git a/Tests/OpenAPIKitTests/Schema Object/SchemaFragmentCombiningTests.swift b/Tests/OpenAPIKitTests/Schema Object/SchemaFragmentCombiningTests.swift index fd529f6d5e..f4662cb81f 100644 --- a/Tests/OpenAPIKitTests/Schema Object/SchemaFragmentCombiningTests.swift +++ b/Tests/OpenAPIKitTests/Schema Object/SchemaFragmentCombiningTests.swift @@ -1,11 +1,13 @@ // // SchemaFragmentCombiningTests.swift // -// -// Created by Mathew Polzin on 8/2/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit diff --git a/Tests/OpenAPIKitTests/Schema Object/SchemaFragmentTests.swift b/Tests/OpenAPIKitTests/Schema Object/SchemaFragmentTests.swift index 4127e1f4ba..beecdcb1aa 100644 --- a/Tests/OpenAPIKitTests/Schema Object/SchemaFragmentTests.swift +++ b/Tests/OpenAPIKitTests/Schema Object/SchemaFragmentTests.swift @@ -1,11 +1,13 @@ // // SchemaFragmentTests.swift // -// -// Created by Mathew Polzin on 4/21/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import OpenAPIKit import XCTest diff --git a/Tests/OpenAPIKitTests/Schema Object/SchemaObjectInternalTests.swift b/Tests/OpenAPIKitTests/Schema Object/SchemaObjectInternalTests.swift index 79aa32ebb9..310ab2c7a5 100644 --- a/Tests/OpenAPIKitTests/Schema Object/SchemaObjectInternalTests.swift +++ b/Tests/OpenAPIKitTests/Schema Object/SchemaObjectInternalTests.swift @@ -2,10 +2,13 @@ // SchemaObjectInternalTests.swift // OpenAPIKitTests // -// Created by Mathew Polzin on 8/25/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest @testable import OpenAPIKit diff --git a/Tests/OpenAPIKitTests/Schema Object/SchemaObjectYamsTests.swift b/Tests/OpenAPIKitTests/Schema Object/SchemaObjectYamsTests.swift index 233cb90551..74fcc9c0b4 100644 --- a/Tests/OpenAPIKitTests/Schema Object/SchemaObjectYamsTests.swift +++ b/Tests/OpenAPIKitTests/Schema Object/SchemaObjectYamsTests.swift @@ -1,16 +1,18 @@ // // SchemaObjectYamsTests.swift // -// -// Created by Mathew Polzin on 4/22/20. -// /// /// This file exists to facilitate regression tests for Yams-specific problems encountered /// and fixed. /// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit @preconcurrency import Yams diff --git a/Tests/OpenAPIKitTests/ServerTests.swift b/Tests/OpenAPIKitTests/ServerTests.swift index fcb369c5cd..86cbd0a76a 100644 --- a/Tests/OpenAPIKitTests/ServerTests.swift +++ b/Tests/OpenAPIKitTests/ServerTests.swift @@ -2,10 +2,13 @@ // ServerTests.swift // OpenAPIKitTests // -// Created by Mathew Polzin on 8/25/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit diff --git a/Tests/OpenAPIKitTests/TestHelpers.swift b/Tests/OpenAPIKitTests/TestHelpers.swift index dfb2abb4ca..9c0bfce0fb 100644 --- a/Tests/OpenAPIKitTests/TestHelpers.swift +++ b/Tests/OpenAPIKitTests/TestHelpers.swift @@ -1,11 +1,13 @@ // // TestHelpers.swift // -// -// Created by Mathew Polzin on 6/23/19. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + @preconcurrency import Yams import XCTest diff --git a/Tests/OpenAPIKitTests/Validator/BuiltinValidationTests.swift b/Tests/OpenAPIKitTests/Validator/BuiltinValidationTests.swift index 6eae74f864..fc67153a0a 100644 --- a/Tests/OpenAPIKitTests/Validator/BuiltinValidationTests.swift +++ b/Tests/OpenAPIKitTests/Validator/BuiltinValidationTests.swift @@ -1,11 +1,13 @@ // // BuiltinValidationTests.swift // -// -// Created by Mathew Polzin on 6/3/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit diff --git a/Tests/OpenAPIKitTests/Validator/Validation+ConvenienceTests.swift b/Tests/OpenAPIKitTests/Validator/Validation+ConvenienceTests.swift index ae9704fb7c..0ec9f988da 100644 --- a/Tests/OpenAPIKitTests/Validator/Validation+ConvenienceTests.swift +++ b/Tests/OpenAPIKitTests/Validator/Validation+ConvenienceTests.swift @@ -1,11 +1,13 @@ // // Validation+ConvenienceTests.swift // -// -// Created by Mathew Polzin on 6/5/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest @testable import OpenAPIKit diff --git a/Tests/OpenAPIKitTests/Validator/ValidationTests.swift b/Tests/OpenAPIKitTests/Validator/ValidationTests.swift index 077da1f769..70ac7353ef 100644 --- a/Tests/OpenAPIKitTests/Validator/ValidationTests.swift +++ b/Tests/OpenAPIKitTests/Validator/ValidationTests.swift @@ -1,11 +1,13 @@ // // ValidationTests.swift // -// -// Created by Mathew Polzin on 6/3/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest @testable import OpenAPIKit diff --git a/Tests/OpenAPIKitTests/Validator/ValidatorTests.swift b/Tests/OpenAPIKitTests/Validator/ValidatorTests.swift index 57b475ac7a..5a8bfc0163 100644 --- a/Tests/OpenAPIKitTests/Validator/ValidatorTests.swift +++ b/Tests/OpenAPIKitTests/Validator/ValidatorTests.swift @@ -1,11 +1,13 @@ // // ValidatorTests.swift // -// -// Created by Mathew Polzin on 6/2/20. -// +#if canImport(FoundationEssentials) +import FoundationEssentials +#else import Foundation +#endif + import XCTest import OpenAPIKit