In the initial implementation of the contributions endpoint, the response contains a "revisions" field that contains a list of revision entities. However, not all contributions are page revisions in the strict sense. Extensions such as Flow can inject contributions that are not revisions. Conceptually, this means that contributions are an entity that is separate from a revision, and there is a specific kind of contribution that creates a page revision. To model this, the response structure is to be changed as follows:
- replace the "revisions" key with a "contributions" key, containing a list of objects, each modeling one contribution.
- model each contribution just like we have so far modeled a revision (see T252202), but add a "type" field which for revision contribution always has the value "revision".