Currently, the CI system does not allow creating an item with a sitelink. It fails with the following error:
18:12:22 1) validate GET /entities/items/{id} responses against OpenAPI document 18:12:22 200 OK response is valid for a non-empty item: 18:12:22 AssertionError: User "<anon>": Action "wbeditentity" returned error code "not-recognized-site": Unknown site: wikidb! 18:12:22 at Client.action (node_modules/api-testing/lib/actionapi.js:123:11) 18:12:22 at processTicksAndRejections (internal/process/task_queues.js:95:5) 18:12:22 at async Object.createSingleItem (tests/mocha/helpers/entityHelper.js:60:9) 18:12:22 at async Context.<anonymous> (tests/mocha/openapi-validation/GetItemTest.js:38:36) 18:12:22 18:12:22 18:12:22 18:12:22 ERROR: "api-testing:rest-api" exited with 1.
In order to fully contract-test the response of GET /entities/items/{item_id} against the OpenAPI schema, we should find out how to create an item with a sitelink and include it in the test.