Vet require-dev dependency justinrainbow/json-schema as a require dependency

Created on 10 June 2023, almost 2 years 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

Active

Version

10.1 ✨

Component
single-directory componentsΒ  β†’

Last updated 2 days ago

Created by

e0ipso Can Picafort

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

Comments & Activities

Production build 0.71.5 2024