Skip to content

Commit

Permalink
add test to cover parsed with errors case
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsypkina committed Mar 4, 2024
1 parent dd16142 commit ff94ac5
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ class DefaultContextFactoryTest {
assertThat(result).resultsInNotApplicable()
}

@Test
fun `OPEN API -- Openapi property is expected to be String according to the OpenAPI3 spec`() {
@Language("YAML")
val content = """
openapi: {la: 3.0.0}
"""
val result = defaultContextFactory.parseOpenApiContext(content)
assertThat(result).resultsInParsedWithErrors()
}

@Test
fun `OPEN API -- not applicable when content does not contain the openapi property`() {
@Language("YAML")
Expand Down

0 comments on commit ff94ac5

Please sign in to comment.