Skip to content

Add get_json_schema() for server-generated JSON Schema draft-07 - #488

Merged
hoijnet merged 4 commits into
mainfrom
feat/json-schema-export
Nov 12, 2026
Merged

hoijnet merged 4 commits into
mainfrom
feat/json-schema-export

Conversation

@dfrnt-hoijnet

Copy link
Copy Markdown
Contributor

The schema endpoint's format=jsonschema export produces validating JSON Schema for a class or the whole schema graph in one definitions document. The client only surfaced class frames, a TerminusDB-internal shape; exposing the draft-07 document lets users validate documents client-side and scaffold typings without maintaining a parallel schema. Mirrors the JavaScript client's getJSONSchema.

The schema endpoint's format=jsonschema export produces validating JSON Schema for a class or the whole schema graph in one definitions document. The client only surfaced class frames, a TerminusDB-internal shape; exposing the draft-07 document lets users validate documents client-side and scaffold typings without maintaining a parallel schema. Mirrors the JavaScript client's getJSONSchema.
@codecov

codecov Bot commented Nov 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.46%. Comparing base (69c8598) to head (6ec41c3).
⚠️ Report is 29 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #488      +/-   ##
==========================================
+ Coverage   94.31%   95.46%   +1.14%     
==========================================
  Files         115      116       +1     
  Lines       15596    16349     +753     
==========================================
+ Hits        14710    15608     +898     
+ Misses        886      741     -145     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hoijnet
hoijnet merged commit 5019648 into main Nov 12, 2026
8 checks passed
@hoijnet
hoijnet deleted the feat/json-schema-export branch November 12, 2026 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants