Skip to content

Commit 4f43141

Browse files
authored
Fix compat suite tests (#561)
### Motivation With newer Yams, some bugs that hid OpenAPI doc issues are now surfaced. ### Modifications Adapt the compat suite tests to pass again. ### Result Compat suite passing. ### Test Plan Ran the compat suite locally and it passed.
1 parent 2520194 commit 4f43141

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/OpenAPIGeneratorReferenceTests/CompatabilityTest.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ final class CompatibilityTest: XCTestCase {
8585

8686
func testDiscourse() async throws {
8787
try await _test(
88-
"https://raw.githubusercontent.com/discourse/discourse_api_docs/fa2391353e9c3eb016ccae30daa34467d2ac2616/openapi.yml",
88+
"https://raw.githubusercontent.com/discourse/discourse_api_docs/8182f1b21ca62cc9ac85fd3a82cae8304033a672/openapi.yml",
8989
license: .apache,
9090
expectedDiagnostics: [
9191
"Validation warning: Inconsistency encountered when parsing `OpenAPI Schema`: Found nothing but unsupported attributes..",
@@ -109,6 +109,7 @@ final class CompatibilityTest: XCTestCase {
109109
"A property name only appears in the required list, but not in the properties map - this is likely a typo; skipping this property.",
110110
"Schema warning: Inconsistency encountered when parsing `OpenAPI Schema`: Found schema attributes not consistent with the type specified: array. Specifically, attributes for these other types: [\"object\"].",
111111
"Schema warning: Inconsistency encountered when parsing `Schema`: A schema contains properties for multiple types of schemas, namely: [\"array\", \"object\"]..",
112+
"Schema \"null\" is not supported, reason: \"schema type\", skipping",
112113
],
113114
skipBuild: true
114115
)
@@ -125,6 +126,7 @@ final class CompatibilityTest: XCTestCase {
125126
"A property name only appears in the required list, but not in the properties map - this is likely a typo; skipping this property.",
126127
"Validation warning: Inconsistency encountered when parsing `OpenAPI Schema`: Found schema attributes not consistent with the type specified: string. Specifically, attributes for these other types: [\"object\"].",
127128
"Schema warning: Inconsistency encountered when parsing `OpenAPI Schema`: Found schema attributes not consistent with the type specified: string. Specifically, attributes for these other types: [\"array\"].",
129+
"Schema \"null\" is not supported, reason: \"schema type\", skipping",
128130
],
129131
skipBuild: true
130132
)

0 commit comments

Comments
 (0)