Page MenuHomePhabricator

Run CI to validate API against OpenApi Spec
Closed, ResolvedPublic

Description

*Questions to answer*

  • What should be validated -- just the manifest JSON response or the whole API including path
  • Should the validation be included in the already existing api tests or should it be a separate job?

ACs

  1. It should not be possible to merge a patch where the output format of the API does not match the API spec
  2. It should also validate that the OpenAPI spec is a valid OpenAPI spec Hint: apparently the RESTful dreams team have a linter that does this, and maybe we can use that

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 631757 had a related patch set uploaded (by Silvan Heintze; owner: Silvan Heintze):
[mediawiki/extensions/WikibaseManifest@master] Add api test to validate manifest against schema

https://gerrit.wikimedia.org/r/631757

Change 631757 merged by jenkins-bot:
[mediawiki/extensions/WikibaseManifest@master] Add api test to validate manifest against schema

https://gerrit.wikimedia.org/r/631757