superlint/.automation/test/openapi
Justin Kalland 37f6828d1e Fix OpenAPI tests being run by JSON & YAML
Tests are run by file extension. The [JSON] and [YAML] tests were running the _bad_ [OPENAPI] tests and expecting them to fail.

For [OPENAPI] the _bad_ tests are syntactically good JSON/YAML but bad OAS.
2020-06-25 11:49:09 +02:00
..
openapi_bad_1.ymlopenapi Fix OpenAPI tests being run by JSON & YAML 2020-06-25 11:49:09 +02:00
openapi_bad_2.jsonopenapi Fix OpenAPI tests being run by JSON & YAML 2020-06-25 11:49:09 +02:00
openapi_good_1.ymlopenapi Fix OpenAPI tests being run by JSON & YAML 2020-06-25 11:49:09 +02:00
openapi_good_2.jsonopenapi Fix OpenAPI tests being run by JSON & YAML 2020-06-25 11:49:09 +02:00
README.md Fix OpenAPI tests being run by JSON & YAML 2020-06-25 11:49:09 +02:00

OpenAPI Test Cases

This folder holds the test cases for OpenAPI.

Additional Docs

The _bad_ tests are valid .yml/.json but invalid OpenAPI specs. The test extensions used are .ymlopenapi/.jsonopenapi instead of .yml/.json. This is to prevent the [YAML] and [JSON] tests from picking them up.

Good Test Cases

The test cases denoted: LANGUAGE_good_FILE.EXTENSION are all valid, and should pass successfully when linted.

  • Note: They are linted utilizing the default linter rules.

Bad Test Cases

The test cases denoted: LANGUAGE_bad_FILE.EXTENSION are NOT valid, and should trigger errors when linted.

  • Note: They are linted utilizing the default linter rules.