Skip to content

Fixes #24149: upgrade JSON Schema from draft-07 to 2020-12 - #33631

Merged
harshach merged 9 commits into
mainfrom
copenhagen
Sep 22, 2026
Merged

harshach merged 9 commits into
mainfrom
copenhagen

Conversation

@harshach

@harshach harshach commented Sep 19, 2026 •

Copy link
Copy Markdown
Collaborator

Describe your changes:

Fixes #24149

Every JSON Schema under openmetadata-spec now declares
https://json-schema.org/draft/2020-12/schema instead of draft-07. definitions and
all #/definitions/... pointers are kept — 2020-12 tolerates definitions as an
unknown keyword and JSON Pointer resolution does not depend on it — so the schemas
themselves stay shape-compatible, exactly as the issue proposes.

The dialect bump is not purely cosmetic, though: 2020-12 deleted two keywords we use,
and two of our schema consumers cannot read the new dialect at all. Both are fixed here,
because without them the upgrade silently disables validation rather than failing loudly.

Type of change:

  • Improvement

High-level design:

1. The schemas (1024 files). $schema → 2020-12. Nothing else changes; the spec
files keep definitions, $id, javaType, $comment annotations and every $ref.

2. Keywords 2020-12 removed.

Schema Before After Why
metadataIngestion/policyagentconfig/databasePolicyConfig.json dependencies dependentRequired 2020-12 split dependencies. Left alone, a conformant validator ignores it and "tableName requires schemaName" stops being enforced.
19 governance task schemas (36 sites) "additionalItems": false removed The keyword no longer exists in 2020-12, and it was already inert: every site pairs it with schema-form items, where draft-07 ignores it too. minItems/maxItems already carry the intent.

I scanned the whole corpus for the other draft-07/2020-12 divergences before changing
anything — array-form items (would need prefixItems), boolean exclusiveMinimum/
exclusiveMaximum, draft-04 id, $id with a fragment, $id/$anchor nested inside
definitions, and $ref with sibling assertion keywords. There are zero occurrences
of any of them, which is why the two keywords above are the entire semantic delta.

3. Consumers that could not read 2020-12.

  • SchemaFieldExtractor loads entity schemas through everit-json-schema 1.14.4,
    which only ships meta-schemas up to draft-07 and aborts with
    SchemaException: #: could not determine version. That takes down the entity-fields and
    custom-property endpoints for every entity type. everit has no 2020-12 support and is
    effectively unmaintained, so migrating it is not an option here; instead both loader
    sites now share a newSchemaLoader() helper that pins .draftV7Support(). That is safe
    and not a cop-out: this class walks a schema to enumerate field names and types and
    never validates data, and per the scan above our schemas use no keyword whose meaning
    differs between the two drafts. The comment on the helper records the reasoning.

  • The UI, which validates every RJSF form with @rjsf/validator-ajv8. Its Ajv carries
    the draft-07 meta-schema only, and Ajv's failure mode here is quiet and total: against a
    2020-12 document it returns the single error
    no schema with key or ref "https://json-schema.org/draft/2020-12/schema" and validates
    no field at all. Every connector form (198 of them), the SSO form, application config,
    the profiler settings form and the ingestion workflow form would have been affected.
    New src/utils/JSONSchemaFormValidator.ts builds validators from ajv/dist/2020, and
    all eleven import sites now go through it instead of importing @rjsf/validator-ajv8
    directly. ajv becomes a direct dependency pinned to ^8.12.0 — the exact range
    @rjsf/validator-ajv8 already resolves — so the previously nested copy dedupes onto the
    root one and yarn.lock is unchanged.

    Alternative considered and rejected: stripping $schema from the dereferenced bundles
    in parseSchemas.js (a one-line change, since the script already strips $id). It keeps
    today's behaviour, but leaves the UI silently on draft-07 semantics while the spec claims
    2020-12 — so the day someone adds a prefixItems or dependentRequired to a connection
    schema, the form would mis-validate with no signal. Teaching Ajv the dialect is the
    version that stays correct.

4. Propagation. yarn parse-schema regenerated the committed dereferenced bundles
(public/jsons/**, src/jsons/**); the hand-written application schemas, UI mocks and
schema-shaped test fixtures were bumped to match; and scaffold.py plus the skills docs
that tell future authors which draft to use were updated so new schemas are born on 2020-12.

Deliberately left on draft-07: ingestion fixtures and the TopicResourceIT payload
that represent user-supplied topic/datalake schemas rather than OpenMetadata spec
documents, and openmetadata-mcp/server.json (that $schema points at the MCP registry
schema, not ours).

Backward compatibility / migration: none needed. $schema is document metadata; no
stored entity JSON changes shape, and the generated Java POJOs are byte-identical (see
below), so no bootstrap/sql migration is involved.

Tests:

Use cases covered

  • Server boots and serves all 58 entity types with 2020-12 schemas on the classpath
    (migrations, type registry, search reindex).
  • GET /v1/metadata/types/fields/* and custom-property validation keep working through
    SchemaFieldExtractor — this is the path that hard-failed before the everit fix.
  • Every connector connection form still renders and still reports field-level validation
    errors (required, enum, minLength, type) — this is the path that silently stopped
    validating before the Ajv2020 fix.
  • Custom properties, entity CRUD, CSV import/export and task form validation (the
    networknt-validated paths) behave identically under the new dialect.

Unit tests

  • Added openmetadata-ui/src/main/resources/ui/src/utils/JSONSchemaFormValidator.test.ts
    (5 tests) as a regression guard for the exact failure mode: it asserts real field-level
    errors come back for a 2020-12 document, that $ref into definitions still resolves,
    and that all 198 committed connection-schema bundles validate without the
    no schema with key or ref sentinel. Reverting AjvClass: Ajv2020 makes 3 of the 5
    fail, with the bundle test listing all 198 — verified, not assumed.

Suites run:

Suite Result
openmetadata-service unit tests 9,734 run, 1 pre-existing failure (below)
UI Jest, all touched form components 372 passed / 28 suites
UI Jest, new validator test 5 passed
Ingestion pytest tests/unit 10,899 passed, 3 env-only failures (below)

Codegen was re-run and diffed rather than trusted — the schema change is metadata-only for
every generator:

Generator Output Diff before → after
jsonschema2pojo (Java POJOs) 1,888 files 0 (clean mvn clean install both sides)
datamodel-code-generator (Pydantic) 1,173 files 0 (ignoring the timestamp header)
quicktype (src/generated/**) committed tree 0

I also ran an equivalence harness comparing old (draft-07 + stock Ajv) against new
(2020-12 + Ajv2020) across all 282 generated bundles plus the 10 application schemas,
on several form-data shapes: 1,410 comparisons, exactly 1 divergence — the intended
dependencies → dependentRequired rename, which still produces the same
"schemaName is required" error under the new keyword name.

Backend integration tests

  • Ran the existing suite (no new endpoints, so no new ITs); MySQL 8.3 + Elasticsearch
    9.3 testcontainers with a real server.
Lane Result
parallel 15,328 tests / 357 classes, 3 failing classes (all explained below)
isolated BUILD SUCCESS — 540 tests / 13 classes, incl. EntityShapeIT, SystemResourceIT, AppsResourceIT, WorkflowDefinitionResourceIT, ConversationSchemaMigrationIT

All 4 failures across every suite are environmental or pre-existing, each verified rather
than assumed:

Failure Cause
K8sOMJobOperatorIT, IngestionPipelineResourceIT k3s testcontainer cannot start in my sandbox. Reproduced with a bare docker run rancher/k3s: failed to evacuate root cgroup: read /sys/fs/cgroup/cgroup.procs: operation not supported
SearchIndexingFieldsParityIT One queryCostRecord NPE (Query.setChangeDescription on a Query deleted by a concurrent test in the shared server). Passes when re-run in isolation.
TaskWorkflowLifecycleResolverTest.workflowStartVariablesTolerateNullOptionalFields Pre-existing — reproduced identically on an unmodified main tree. task.json's priority is a bare $ref with no default, so the POJO field is null, not Medium.
3 × test_airflow_connection.py No module named 'airflow' — airflow is deliberately excluded from the all-dev-env extra in ingestion/setup.py

Ingestion integration tests

  • Not applicable — no connector logic changed. ingestion/src/metadata/cli/scaffold.py
    emits 2020-12 for newly scaffolded connection schemas and its unit test was updated with
    it; the full ingestion unit suite is reported above.

Playwright (UI) tests

  • Not applicable — no user-visible behaviour changes, so there is no new flow to drive.
    The regression risk here is "validation silently stops firing", which a browser test
    covers far more slowly and less completely than the new Jest guard: that test walks all
    198 connection-schema bundles in ~6s, where a Playwright spec would cover one connector.
    playwright/e2e/Flow/ConnectionConfigLayout.spec.ts already renders connector forms
    end-to-end and continues to apply unchanged.

Manual testing performed

  1. Built the full reactor (mvn -pl openmetadata-integration-tests -am install -DskipTests)
    and booted the real stack via the IT harness — MySQL 8.3.0 + Elasticsearch 9.3.0
    containers, migrations applied, Dropwizard app up — confirming the server loads and
    registers all 58 entity types from the 2020-12 schemas.
  2. Re-ran the full codegen pipeline end-to-end: make generate (exit 0),
    mvn clean install -pl openmetadata-spec, json2ts-generate-all.sh, yarn parse-schema.
  3. Confirmed yarn parse-schema is stable after Prettier, so the
    typescript-type-generation workflow finds nothing to commit.
  4. yarn install --frozen-lockfile succeeds against the new package.json with no
    lockfile change; verified exactly one Ajv 8 copy remains in the tree and ESLint keeps
    its own Ajv 6.
  5. Production vite build succeeds and yarn bundle:check passes (1,045,603 bootstrap
    Brotli bytes against the 1150 KiB budget). Measured the Ajv2020 switch at +14.6 KB raw
    / ~3 KB gzipped
    on the validator chunk.

UI screen recording / screenshots:

Not applicable — this PR changes no markup, styling or layout. The UI delta is which Ajv
build backs the RJSF validator, and it is behaviour-preserving by construction: the 1,410
old-vs-new validation comparisons described above return identical error sets (same
messages, same properties, same counts) for every form in the product. A recording would
show two identical screens. Happy to attach one if a reviewer would still like it.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: no migration scripts are needed — $schema is document
    metadata, no stored entity JSON changes shape, and the generated POJOs are
    byte-identical, so nothing in bootstrap/sql is affected.
  • For UI changes: marked not applicable above, with the equivalence evidence in place
    of a recording.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • I have added tests around the new logic.
  • For connector/ingestion changes: scaffold.py and the connector-standards skills docs
    now document 2020-12 for new schemas.

🤖 Generated with Claude Code


Open workspace in Conductor

RetriggerConfidence Score: 5/5

No additional merge-blocking issue was found in the changes made since the previous review.

Summary

This PR updates OpenMetadata’s JSON Schema declarations from draft-07 to draft 2020-12 and adapts schema consumers that cannot directly load the new dialect.

  • Pins Everit-based schema extraction to draft-07 parsing while preserving reference resolution.
  • Removes schema dialect declarations from generated UI bundles so existing RJSF/Ajv validation continues to load them.
  • Updates schema scaffolding, documentation, fixtures, and generated bundles to propagate the new declaration.
  • Incorporates the newly merged Rill connector schema into the upgraded schema corpus.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
  S[2020-12 source schemas] --> J[Generated Java/Python/TypeScript models]
  S --> E[SchemaFieldExtractor]
  E --> V7[Everit loader pinned to draft-07]
  S --> P[parseSchemas.js]
  P --> B[Dereferenced UI bundles without schema metadata]
  B --> R[RJSF forms using Ajv draft-07]
  S --> C[External 2020-12-aware consumers]
Loading

Reviews (7) · Last reviewed commit: "Merge branch 'main' into copenhagen"

Move all 1024 schemas under openmetadata-spec to
`https://json-schema.org/draft/2020-12/schema`, keeping `definitions` and
every `#/definitions/...` pointer — 2020-12 tolerates them as unknown
keywords and JSON Pointer resolution is unaffected.

Two keywords the new dialect drops had to be handled:

- `databasePolicyConfig.json` used `dependencies`, which 2020-12 replaced
  with `dependentRequired`. Left as-is it would silently stop enforcing
  "tableName requires schemaName" wherever a conformant validator runs.
- 36 `"additionalItems": false` across 19 governance task schemas were
  removed. The keyword no longer exists in 2020-12 and was already inert:
  every site pairs it with schema-form `items`, where draft-07 ignores it
  too.

Two consumers could not read the new dialect:

- SchemaFieldExtractor loads schemas through everit-json-schema, which
  only knows meta-schemas up to draft-07 and failed with "could not
  determine version", taking the entity-fields and custom-property paths
  with it. Both loader sites now share newSchemaLoader(), which pins
  `.draftV7Support()`. The class walks schemas to list field names and
  types and never validates data, and our schemas use no keyword whose
  meaning differs between the drafts.
- The UI validates every RJSF form with @rjsf/validator-ajv8, whose Ajv
  carries the draft-07 meta-schema only. Against a 2020-12 document it
  returns a single `no schema with key or ref ...` error and drops all
  field validation. JSONSchemaFormValidator builds validators from
  `ajv/dist/2020` instead, and all eleven import sites now go through it.
  `ajv` becomes a direct dependency at the range @rjsf/validator-ajv8
  already resolves, so the two copies dedupe and yarn.lock is unchanged.

The generators are unaffected: Java POJOs (1888 files), Pydantic models
(1173 files) and the committed TypeScript types are byte-identical before
and after.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR checks passed

The linked issue has a description and all required Shipping project fields set. Thanks!

@github-actions github-actions Bot added backend safe to test Add this label to run secure Github workflows on PRs labels Sep 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Playwright impact map auto-refreshed

This PR touched specs or UI source that changed the source→spec routing map. I regenerated .github/playwright/impact-map.generated.json and pushed the diff to this branch.

- source entries: 780 → 780
- 0 added, 0 removed, 12 changed spec-list

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/playwright/constant/config.ts
  openmetadata-ui/src/main/resources/ui/playwright/constant/permission.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/access-control/PoliciesClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/access-control/RolesClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/entity/TableClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/fixtures/base.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/glossary/Glossary.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/glossary/GlossaryTerm.ts
  openmetadata-ui/src/main/resources/ui/playwright/support/user/UserClass.ts
  openmetadata-ui/src/main/resources/ui/playwright/utils/admin.ts
  … and 2 more

What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing getByTestId strings. Hand-authored routing in impact-map.json always wins on conflict.

What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit:

python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit  # or a separate commit

The only conflict was `.github/playwright/impact-map.generated.json`, which both
sides had regenerated independently. Resolved by re-running
`.github/scripts/generate_playwright_impact_map.py` against the merged tree rather
than hand-merging generated JSON; the result is byte-identical to main's copy
(798 entries) because this branch adds no spec-reachable source files.

No other file was touched by both sides, and main introduced no new JSON schemas
and no new `@rjsf/validator-ajv8` consumers, so the draft-07 -> 2020-12 upgrade
needs no follow-up in the merged tree.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 107747530a1d5e4cc85fd09b0f3f88643af3a55b in Playwright run 35488356384, attempt 1.

✅ 4536 passed · ❌ 0 failed · 🟡 9 flaky · ⏭️ 1 skipped · 🧰 0 lifecycle flaky

Performance

Blocking targets: ✅ met · Optimization targets: 🟡 in progress

Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting.

🕒 Full workflow signal wall (to summary) 52m 10s

⏱️ Max setup 4m 41s · max shard execution 20m 59s · max shard-job elapsed before upload 24m 6s · reporting 19s

🌐 225.71 requests/attempt · 2.23 app boots/UI scenario · 45.51% common-shard skew

Optimization targets still in progress:

  • Common shard skew was 45.51% (convergence target: at most 15%).
  • Browser traffic was 225.71 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.23 per UI scenario (10777 boots / 4837 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard advanced-search-01 67 0 0 0 0 0
✅ Shard advanced-search-02 63 0 0 0 0 0
✅ Shard chromium-01 175 0 0 0 0 0
✅ Shard chromium-02 163 0 0 0 0 0
✅ Shard chromium-03 146 0 0 0 0 0
✅ Shard chromium-04 151 0 0 0 0 0
✅ Shard chromium-05 136 0 0 0 0 0
✅ Shard chromium-06 197 0 0 1 0 0
✅ Shard chromium-07 149 0 0 0 0 0
✅ Shard chromium-08 144 0 0 0 0 0
✅ Shard chromium-09 151 0 0 0 0 0
✅ Shard chromium-10 159 0 0 0 0 0
✅ Shard chromium-11 153 0 0 0 0 0
✅ Shard chromium-12 169 0 0 0 0 0
🟡 Shard chromium-13 142 0 1 0 0 0
✅ Shard chromium-14 144 0 0 0 0 0
✅ Shard chromium-15 151 0 0 0 0 0
✅ Shard chromium-16 165 0 0 0 0 0
🟡 Shard chromium-17 189 0 2 0 0 0
🟡 Shard chromium-18 167 0 1 0 0 0
🟡 Shard chromium-19 154 0 2 0 0 0
✅ Shard chromium-20 173 0 0 0 0 0
🟡 Shard chromium-21 143 0 1 0 0 0
✅ Shard chromium-22 149 0 0 0 0 0
✅ Shard chromium-23 185 0 0 0 0 0
✅ Shard chromium-24 138 0 0 0 0 0
🟡 Shard chromium-25 168 0 2 0 0 0
✅ Shard data-asset-rules-01 65 0 0 0 0 0
✅ Shard domain-isolation-01 16 0 0 0 0 0
✅ Shard global-state-01 34 0 0 0 0 0
✅ Shard import-export-01 21 0 0 0 0 0
✅ Shard import-export-02 95 0 0 0 0 0
✅ Shard import-export-03 34 0 0 0 0 0
✅ Shard ingestion-01 60 0 0 0 0 0
✅ Shard ingestion-02 39 0 0 0 0 0
✅ Shard reindex-01 40 0 0 0 0 0
✅ Shard search-01 12 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0
🟡 9 flaky test(s) (passed on retry)
  • Flow/ConditionalPermissions.spec.ts › User with owner permission can only view owned Pipeline Services (shard chromium-13, 1 retry)
  • Pages/Entity.spec.ts › Tag and Glossary Term preservation in column detail panel (shard chromium-17, 1 retry)
  • Features/Glossary/GlossaryPagination.spec.ts › should check for glossary term search (shard chromium-17, 1 retry)
  • Features/AccessControlSettings.spec.ts › should show all 4 landing cards and navigate to each panel (shard chromium-18, 1 retry)
  • Features/UserProfileOnlineStatus.spec.ts › Should show online status badge on user profile for active users (shard chromium-19, 1 retry)
  • Features/UserProfileOnlineStatus.spec.ts › Should not show online status for inactive users (shard chromium-19, 1 retry)
  • Pages/Domains.spec.ts › Multiple consecutive domain renames preserve all associations (shard chromium-21, 1 retry)
  • Features/ExploreQuickFilters.spec.ts › should filter assets by data product (shard chromium-25, 1 retry)
  • Pages/ExplorePageRightPanel_KnowledgeCenter.spec.ts › Should remove user owner for knowledgeCenter (shard chromium-25, 1 retry)

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

harshach and others added 2 commits September 20, 2026 00:31
…dles

The Collate build vendors the OpenMetadata UI source into collate-ui but
resolves against its own package.json, so the `ajv/dist/2020` import added
here did not resolve there:

  [vite]: Rolldown failed to resolve import "ajv/dist/2020" from
  .../collate-ui/.../src/openmetadata-ui/src/utils/JSONSchemaFormValidator.ts

Adding `ajv` to that package.json is not something this repo can do, so any
new direct UI dependency is a cross-repo coordination cost. Reverted the
dependency, the shared validator module and all eleven import swaps.

Instead `parseSchemas.js` now strips `$schema` alongside the `$id` it already
strips. What it writes is a dereferenced bundle, not the spec document it came
from: the `$id` no longer addresses anything and the nested `$schema` keys are
not even keyword positions. Removing the root declaration keeps Ajv on its
default dialect, which is the dialect these forms have always been validated
against, so behaviour is unchanged rather than merely equivalent.

Also reverted `dependentRequired` back to `dependencies`. That conversion is
correct for 2020-12 on paper, but Ajv's draft-07 build enforces `dependencies`
and ignores `dependentRequired`, so it silently dropped "tableName requires
schemaName" from the connector form. networknt honours `dependencies` under
the 2020-12 dialect, so keeping it is the option that works in both validators
today — the same backward-compatibility reasoning that keeps `definitions`.

Verified: 1410 old-vs-new validations across all 282 generated bundles through
the stock validator the app ships — 0 divergences, 0 compile failures (the one
divergence before this revert was the lost dependency constraint). Generated
POJOs still 1888 files / 0 diff, committed TS types unchanged, 409 UI tests
pass across 36 suites.

Teaching the UI to validate on an Ajv 2020-12 build is still the better end
state; it needs the matching dependency in Collate, so it belongs in its own
coordinated change.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Comments Outside Diff

These findings sit on lines the diff does not cover, so they could not be posted inline. Each one leaves this list once its file changes.

  • P1 Obsolete keyword disables validation openmetadata-spec/src/main/resources/json/schema/metadataIngestion/policyagentconfig/databasePolicyConfig.json:75 ▶

    This schema declares draft 2020-12, but dependencies is no longer a validation keyword in that dialect. A conforming 2020-12 consumer therefore accepts tableName without schemaName, or columnName without tableName, despite the documented requirements. The generated UI only enforces these relationships because it strips $schema and interprets the bundle as draft-07. Keep dependentRequired in the source contract; if the UI must remain on draft-07, translate the keyword only when generating that bundle.

      "dependentRequired": {
        "tableName": ["schemaName"],
        "columnName": ["tableName"]
      },
    

harshach and others added 2 commits September 19, 2026 21:07
Conflicts were the three generated bundles under public/jsons and src/jsons
(serviceConnection, testSuitePipeline, workflow): main changed the schemas
behind them while this branch strips `$schema` from the generated output.
Resolved by re-running `yarn parse-schema` over the merged spec rather than
hand-merging generated JSON, so the result is what the generator produces
and cannot drift from it.

main also added `rillConnection.json`, a new connector schema still declaring
draft-07. Flipped it to 2020-12 with the rest — a long-running dialect
migration has to pick up whatever lands mid-flight or the tree ends up mixed.
Scanned it first for the constructs that actually differ between the drafts
(array-form `items`, `additionalItems`, `dependencies`, boolean
`exclusiveMinimum`/`exclusiveMaximum`, `$ref` with sibling assertions): none
present, so the flip is metadata-only for it too.

Verified on the merged tree: spec builds with 1889 POJOs (+1 for main's new
RillConnection); the committed TypeScript types are byte-identical to main, so
this branch contributes no generated drift; 1415 old-vs-new validations across
all 283 bundles through the stock @rjsf/validator-ajv8 show 0 divergences and
0 compile failures; 290 UI tests pass across 28 suites.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@gitar-bot

gitar-bot Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 1 closed / 1 findings

🔴 High risk · Broad JSON Schema dialect change affects backend and UI validation consumers

Upgrades JSON Schema corpus from draft-07 to 2020-12 across 1,024 spec files and updates all consumers to handle the new dialect. Backend schema extraction pins draft-v7 compatibility mode (safe: schemas use no dialect-specific keywords), UI forms now validate through Ajv 2020, and generated bundles and scaffolding are regenerated to match. Comprehensive testing confirms validation behavior is preserved—1,410 comparisons show identical error sets—and all 198 connection-schema bundles validate without regression. No issues found.

✅ 1 closed
✅ Quality: Inert dialect-mismatch assertion in validator test

📄 openmetadata-ui/src/main/resources/ui/src/utils/JSONSchemaFormValidator.test.ts:54-56
The regression guard uses expect(errors.map(e => e.stack ?? '')).not.toContain(expect.stringContaining(DIALECT_MISMATCH)). Jest's toContain matches array elements with === and does not unwrap asymmetric matchers like expect.stringContaining(...), so a string[] can never toContain the matcher object. The negated assertion therefore passes unconditionally and never actually checks that the no schema with key or ref error is absent — the exact failure mode this file is meant to guard. The other assertions and the bundle test still provide real coverage, so this is a false-confidence issue rather than a functional break.

Review coverage

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

🤖 Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-09-22T01:48:25Z)

Blocked the queue: py-tests-status

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JSON Schema Upgrade: Draft-07 → 2020-12

4 participants