[PP-1] [Upstream bug] Vendored json-schema for json:api is incorrect

Created on 11 January 2022, over 2 years ago
Updated 16 October 2023, 8 months ago

Problem/Motivation

The json-schema shipped with jsonapi module is incomplete/incorrect; this doesn't necessarily affect any of Drupal's current implementation, but it is "wrong." This is being addressed upstream, but we do not necessarily need to wait on jsonapi.org to ship the "correct" json-schema if we feel an alternative is more correct. This could be an issue if extending code chooses to validate against the json-schema file in core (or even link to it from a client?) so this is minor at the moment, but should be fixed or at least tracked to include the updated file when a fix is adopted officially upstream.

I actually ran into this using the same file downloaded from jsonapi.org when doing client-side validation, and discovered we ship a copy of the schema in Drupal core.

See https://github.com/json-api/json-api/issues/1554#issuecomment-1010338466

πŸ› Bug report
Status

Closed: duplicate

Version

11.0 πŸ”₯

Component
JSON APIΒ  β†’

Last updated 2 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States bradjones1 Digital Nomad Life

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024