We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd16142 commit ff94ac5Copy full SHA for ff94ac5
server/zally-core/src/test/kotlin/org/zalando/zally/core/DefaultContextFactoryTest.kt
@@ -23,6 +23,16 @@ class DefaultContextFactoryTest {
23
assertThat(result).resultsInNotApplicable()
24
}
25
26
+ @Test
27
+ fun `OPEN API -- Openapi property is expected to be String according to the OpenAPI3 spec`() {
28
+ @Language("YAML")
29
+ val content = """
30
+ openapi: {la: 3.0.0}
31
+ """
32
+ val result = defaultContextFactory.parseOpenApiContext(content)
33
+ assertThat(result).resultsInParsedWithErrors()
34
+ }
35
+
36
@Test
37
fun `OPEN API -- not applicable when content does not contain the openapi property`() {
38
@Language("YAML")
0 commit comments