The OpenAPI description (OAD) example and the OpenAPI linter are designed to help API maintainers create high quality OpenAPI descriptions. It's important for these tools to work well together and provide consistent guidance, and one of the best ways to ensure that is to test the linter against the example.
In scope for this task:
- Decide where to store the OAD example for use in tests. Note that this will be a temporary location until the linter code gets reorganized. When that happens, we'll probably want to keep the example alongside linter rules. Possible options:
- In the dedicated repository maintained by the Technical Documentation Team - fetched from that location during tests.
- As a submodule in the linter repository
- Directly in the linter repository, as files in a subdirectory (current dedicated repository for the example would be deprecated)
- Create tests that lint the OAD example
- Decide what to do when tests fail. Tests failing might indicate an error in linter rules, or an error in the OAD example.