Last active
March 23, 2021 12:07
-
-
Save mihaelamj/ebd4e0cd7b905d67aef7ad31c88ad5e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import OpenAPIKitCore | |
import Foundation | |
extension JSONSchema { | |
public typealias RefOrSelf = Either<JSONReference<JSONSchema>, JSONSchema> | |
public typealias RefOrSelf_Array = [JSONSchema.RefOrSelf] | |
} | |
extension OpenAPI.Header { | |
public typealias RefOrSelf = Either<JSONReference<OpenAPI.Header>, OpenAPI.Header> | |
public typealias RefOrSelf_Map = OrderedDictionary<String, OpenAPI.Header.RefOrSelf> | |
} | |
extension OpenAPI.Example { | |
public typealias RefOrSelf = Either<JSONReference<OpenAPI.Example>, OpenAPI.Example> | |
public typealias RefOrSelf_Map = OrderedDictionary<String, OpenAPI.Example.RefOrSelf> | |
} | |
extension OpenAPI.PathItem { | |
public typealias RefOrSelf = Either<JSONReference<OpenAPI.PathItem>, OpenAPI.PathItem> | |
public typealias RefOrSelf_Map = OrderedDictionary<String, OpenAPI.PathItem.RefOrSelf> | |
} | |
extension OpenAPI.Request { | |
public typealias RefOrSelf = Either<JSONReference<OpenAPI.Request>, OpenAPI.Request> | |
} | |
extension OpenAPI.Response { | |
public typealias RefOrSelf = Either<JSONReference<OpenAPI.Response>, OpenAPI.Response> | |
public typealias RefOrSelf_Map = OrderedDictionary<String, OpenAPI.Response.RefOrSelf> | |
} | |
extension OpenAPI.Parameter { | |
public typealias RefOrSelf = Either<JSONReference<OpenAPI.Parameter>, OpenAPI.Parameter> | |
public typealias RefOrSelf_Array = [OpenAPI.Parameter.RefOrSelf] | |
} | |
extension OpenAPI.CallbackURL { | |
public typealias MapToPathItem = OrderedDictionary<OpenAPI.CallbackURL, OpenAPI.PathItem> | |
} | |
extension OpenAPI.CallbackURL.MapToPathItem { | |
public typealias RefOrSelf = Either<JSONReference<OpenAPI.CallbackURL.MapToPathItem>, OpenAPI.CallbackURL.MapToPathItem> | |
public typealias RefOrSelf_Map = OrderedDictionary<String, OpenAPI.CallbackURL.MapToPathItem.RefOrSelf> | |
} | |
extension OpenAPI { | |
public typealias Webhooks = OpenAPI.PathItem.RefOrSelf_Map | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment