Skip to content

Commit

Permalink
Merge pull request #87 from mattpolzin/bugfix/forceDereferenceTypo
Browse files Browse the repository at this point in the history
Fix optionality bug
  • Loading branch information
mattpolzin authored Jun 19, 2020
2 parents 7453383 + bc1d0d5 commit f975988
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ extension OpenAPI.Components {
///
/// - Important: Dereferencing an external reference (i.e. one that points to another file)
/// is not currently supported by OpenAPIKit and will therefore always throw an error.
public func forceDereference<ReferenceType: ComponentDictionaryLocatable>(_ maybeReference: Either<JSONReference<ReferenceType>, ReferenceType>) throws -> ReferenceType? {
public func forceDereference<ReferenceType: ComponentDictionaryLocatable>(_ maybeReference: Either<JSONReference<ReferenceType>, ReferenceType>) throws -> ReferenceType {
switch maybeReference {
case .a(let reference):
guard case .internal = reference else {
Expand Down

0 comments on commit f975988

Please sign in to comment.