You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Tests/OpenAPIKitErrorReportingTests/DocumentErrorTests.swift
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ final class DocumentErrorTests: XCTestCase {
44
44
45
45
letopenAPIError=OpenAPI.Error(from: error)
46
46
47
-
XCTAssertEqual(openAPIError.localizedDescription,"Problem encountered when parsing `openapi` in the root Document object: Cannot initialize Version from invalid String value null.")
47
+
XCTAssertEqual(openAPIError.localizedDescription,"Problem encountered when parsing `openapi` in the root Document object: Failed to parse Document Version null as one of OpenAPIKit's supported options.")
Copy file name to clipboardExpand all lines: Tests/OpenAPIKitTests/Document/DocumentTests.swift
+22-1Lines changed: 22 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -606,7 +606,28 @@ extension DocumentTests {
606
606
}
607
607
}
608
608
""".data(using:.utf8)!
609
-
XCTAssertThrowsError(tryorderUnstableDecode(OpenAPI.Document.self, from: documentData)){ error inXCTAssertEqual(OpenAPI.Error(from: error).localizedDescription,"Problem encountered when parsing `openapi` in the root Document object: Cannot initialize Version from invalid String value 3.1.9.")}
609
+
XCTAssertThrowsError(tryorderUnstableDecode(OpenAPI.Document.self, from: documentData)){ error inXCTAssertEqual(OpenAPI.Error(from: error).localizedDescription,"Problem encountered when parsing `openapi` in the root Document object: Failed to parse Document Version 3.1.9 as one of OpenAPIKit's supported options.")}
XCTAssertEqual(document.warnings.map{ $0.localizedDescription },["Document Version 3.100.100 is being decoded as version 3.1.1. Not all features of OAS 3.100.100 will be supported"])
0 commit comments