What
The swagger spec seems to contain invalid models and references and is out of date with some of the responses.
We should have a mechanism to validate that the spec is correct and consistent (that runs on CI per commit), and additionally exercise it against a subset of the service responses (on the tests on CI).
AC
- The swagger spec exposed by the services is validated and consistent
- It is impossible to commit an inconsistent swagger definition (CI checked)
- A subset of responses from the service are type checked against the tests to ensure that the definitions are consistent with the service responses