The JSON pointer to the root path is an empty string "", not "/". The REST API is currently doing this wrong in missing-field responses when validating that required top-level fields are present.
Technical notes:
- the only piece of production code with this issue appears to be repo/rest-api/src/RouteHandlers/AssertValidTopLevelFields.php
- the affected e2e tests can be found via grep -r "path: '/'" repo/rest-api/tests/mocha/ executed inside the wikibase dir. affected test files at the time of writing:
- repo/rest-api/tests/mocha/api-testing/AddItemAliasesInLanguageTest.js
- repo/rest-api/tests/mocha/api-testing/AddItemStatementTest.js
- repo/rest-api/tests/mocha/api-testing/AddPropertyAliasesInLanguageTest.js
- repo/rest-api/tests/mocha/api-testing/AddPropertyStatementTest.js
- repo/rest-api/tests/mocha/api-testing/CreateItemTest.js
- repo/rest-api/tests/mocha/api-testing/ReplaceItemStatementTest.js
- repo/rest-api/tests/mocha/api-testing/ReplacePropertyStatementTest.js
- repo/rest-api/tests/mocha/api-testing/SetItemDescriptionTest.js
- repo/rest-api/tests/mocha/api-testing/SetItemLabelTest.js
- repo/rest-api/tests/mocha/api-testing/SetPropertyDescriptionTest.js
- repo/rest-api/tests/mocha/api-testing/SetPropertyLabelTest.js
- repo/rest-api/tests/mocha/api-testing/SetSitelinkTest.js
- repo/rest-api/tests/mocha/helpers/testValidatesPatch.js