Problem statement: There is value in having some object models shared across APIs to improve consistency and interoperability. While we can’t assume universally reusable concepts when our APIs span such a broad set of use cases, common core definitions for things like error messages, date formats, pagination, and even core data elements for commonly used objects (eg: page, revision, user) should be able to be pulled into subsequent API definitions, with room to expand or extend as needed.
Deliverables
- Create a new repository for API shared schemas, separate from the existing event-schemas repo and separate from the OpenAPI spec archive (T432800).
- Update the schema.wikimedia.org directory structure to add the new section (exact layout, e.g. /schemas/ vs /specs/ split, this task includes proposing/closing it, not just applying an already-agreed layout).
- Decide the schema ID/URI convention (rootless relative path vs. domain-inclusive URI; whether a custom resolver is required).
- Decide naming convention for shared fields (snake_case vs. camelCase) -- applies to vNext APIs only, not classic/legacy APIs.
- Adopt per-schema versioning to start (not schema "suites" yet) -- not a formal DECISION like the repo split; flag as such if questioned later.
- Coordinate with Andrew/DPE on puppet deployment for the new repo (file a ticket; Andrew offered to help with the puppet side).
- Cross-reference T376841 (human-readable schema viewer on schema.wikimedia.org) as related/existing work -- do not duplicate.
Out of scope for this task: defining the actual shared/reusable fragment schemas (e.g. a common Page definition with id/title/namespace/href)