Skip to content

Commit f975988

Browse files
authored
Merge pull request #87 from mattpolzin/bugfix/forceDereferenceTypo
Fix optionality bug
2 parents 7453383 + bc1d0d5 commit f975988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OpenAPIKit/Component Object/Components+JSONReference.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ extension OpenAPI.Components {
6666
///
6767
/// - Important: Dereferencing an external reference (i.e. one that points to another file)
6868
/// is not currently supported by OpenAPIKit and will therefore always throw an error.
69-
public func forceDereference<ReferenceType: ComponentDictionaryLocatable>(_ maybeReference: Either<JSONReference<ReferenceType>, ReferenceType>) throws -> ReferenceType? {
69+
public func forceDereference<ReferenceType: ComponentDictionaryLocatable>(_ maybeReference: Either<JSONReference<ReferenceType>, ReferenceType>) throws -> ReferenceType {
7070
switch maybeReference {
7171
case .a(let reference):
7272
guard case .internal = reference else {

0 commit comments

Comments
 (0)