Use draft-07 consistently in backend and frontend.
Aligns the PHP and JS JSON-Schema validators on draft-07:
composer.json— bumpsjustinrainbow/json-schemafrom^6.6.2to^6.8.0(draft-07 support landed in 6.8).src/CanvasServiceProvider.php— callssetDefaultDialect(DraftIdentifiers::DRAFT_7)on theJsonSchema\Constraints\Factoryservice definition. Without this the library defaults to draft-06.ui/src/utils/ajv.ts(new) — sharedcreateAjv()helper that builds an Ajv instance withdefaultMeta: 'http://json-schema.org/draft-07/schema#'and layers inajv-formatsplusajv-formats-draft2019.defaultMetamakes the dialect explicit at the construction site rather than relying on Ajv 8's built-in default. The draft-2019 package only adds stringformatvalidators (idn-email,iri,duration, …) — it does not change the dialect.ui/src/components/form/formUtil.tsandui/src/components/form/inputBehaviors.tsx— both now consumecreateAjv()instead of constructingnew Ajv()directly, so the two call sites can no longer drift apart.
AI-Generated: Yes (Used Claude - Opus 4.7 to create MR).
Closes #3591028
Edited by Christian López Espínola