Skip to content
Draft
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
8 changes: 5 additions & 3 deletions Sources/OpenAPIKit/Callbacks.swift
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
8 changes: 5 additions & 3 deletions Sources/OpenAPIKit/Components Object/Components.swift
Original file line number Diff line number Diff line change
@@ -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".
Expand Down
7 changes: 5 additions & 2 deletions Sources/OpenAPIKit/Document/Document.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 5 additions & 3 deletions Sources/OpenAPIKit/Document/DocumentInfo.swift
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
8 changes: 5 additions & 3 deletions Sources/OpenAPIKit/Either/Either+Convenience.swift
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
8 changes: 5 additions & 3 deletions Sources/OpenAPIKit/Example/Example.swift
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 4 additions & 0 deletions Sources/OpenAPIKit/Example/ExampleValue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
// ExampleValue.swift
//

#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif

extension OpenAPI.Example {
/// OpenAPI Spec "Example Object" `datValue`, `serializedValue`,
Expand Down
8 changes: 5 additions & 3 deletions Sources/OpenAPIKit/ExternalDocumentation.swift
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
8 changes: 5 additions & 3 deletions Sources/OpenAPIKit/ExternalLoader.swift
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 5 additions & 3 deletions Sources/OpenAPIKit/JSONReference.swift
Original file line number Diff line number Diff line change
@@ -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.
///
Expand Down
8 changes: 5 additions & 3 deletions Sources/OpenAPIKit/Link.swift
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
8 changes: 5 additions & 3 deletions Sources/OpenAPIKit/Path Item/DereferencedPathItem.swift
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 5 additions & 3 deletions Sources/OpenAPIKit/Schema Object/SimplifiedJSONSchema.swift
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
8 changes: 5 additions & 3 deletions Sources/OpenAPIKit/Security/OAuthFlows.swift
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
8 changes: 5 additions & 3 deletions Sources/OpenAPIKit/Security/SecurityScheme.swift
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
7 changes: 5 additions & 2 deletions Sources/OpenAPIKit/Server.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 5 additions & 3 deletions Sources/OpenAPIKit/Utility/Container+DecodeURLAsString.swift
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
///
Expand Down
5 changes: 5 additions & 0 deletions Sources/OpenAPIKit/XML.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
//

import OpenAPIKitCore

#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif

extension OpenAPI {
/// OpenAPI Spec "XML Object"
Expand Down
8 changes: 5 additions & 3 deletions Sources/OpenAPIKit30/Callbacks.swift
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading
Loading