Promote justinrainbow/json-schema from dev-dependency to full dependency

Created on 10 June 2023, over 1 year ago
Updated 18 June 2024, 6 months ago

Problem/Motivation

During the course of ✨ [PP-1] Allow schema references in Single Directory Component prop schemas Postponed we realized we need a library to parse JSON Schema in order to de-reference sub-schemas and leverage some of the more advanced features of this standard.

We are currently using justinrainbow/json-schema as a require-dev dependency for SDC and JSON:API to validate data against pre-defined schemas during development time. We restrict this to development environments by wrapping the validation in assertions.

Proposed resolution

If we are to support these more advanced features we will need to do so outside of development environments. This means that justinrainbow/json-schema would need to be vetted as a dependency for drupal/core.

Remaining tasks

  1. Discuss if the feature described in ✨ [PP-1] Allow schema references in Single Directory Component prop schemas Postponed justifies including this new dependency in core.
  2. Vet the new dependency
πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component
single-directory componentsΒ  β†’

Last updated 3 days ago

Created by

e0ipso Can Picafort

Live updates comments and jobs are added and updated live.
  • Needs release manager review

    It is used to alert the release manager core committer(s) that an issue significantly affects the overall technical debt or release timeline of Drupal, and their signoff is needed. See the governance policy draft for more information.

  • Contributed project blocker

    It denotes an issue that prevents porting of a contributed project to the stable version of Drupal due to missing APIs, regressions, and so on.

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.71.5 2024