pg_jsonschema
github.com · Open source · Active
Postgres extension that validates json and jsonb columns against JSON Schema
- Data & databases
- Open source
- Rust
- Day-7 check
- Day-30 check
- Stars
- 1.2k
- Forks
- 50
- Open issues
- 1
- Last commit
- Releases
- 7
- Found
- 4 years ago
GitHub figures as of . They are context, not a ranking.
pg_jsonschema is a PostgreSQL extension, written in Rust with pgx, that checks json and jsonb values against a JSON Schema so columns can enforce more structure. It suits teams that store JSON in Postgres and want validation inside the database.
Repository description on GitHub: “PostgreSQL extension providing JSON Schema validation”
What it does
- Validates json and jsonb columns against a JSON Schema
- Checks whether a schema itself is valid
- Returns validation errors for an invalid instance
Good for
- Enforce structure on json or jsonb columns in Postgres
- Check a schema before storing it
- List validation errors for a bad record
Suits: Teams storing JSON in PostgreSQL who want validation.
Worth knowing: The maker describes it as an exploration rather than a finished product
What you can try
Read the README on GitHub and install from source.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw pg_jsonschema on , when oliverrice posted it to Show HN. The oldest published release on GitHub is v0.1.3, dated . Its first tagged release came 132 days after it was found. 7 releases have been published in total; the latest is v0.3.4 ().
Day-7 and day-30 updates
Day 7 no new release
- No tagged release was published in the first 7 days after it was found (GitHub release dates).
- Show HN discussion at check time: 203 points, 56 comments. API record
Checked , later than day 7 because tracking began after.
Day 30 no new release
- No tagged release was published in the first 30 days after it was found (GitHub release dates).
- Show HN discussion at check time: 203 points, 56 comments. API record
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: supabase/pg_jsonschema
- Found: oliverrice posted it to Show HN. Show HN
- Release v0.1.3
- Release v0.1.4
- Release v0.2.0
- Release v0.3.0
- Release v0.3.1
- Release v0.3.3
- Release v0.3.4
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Quick answers
- When was pg_jsonschema released?
- Its first tagged release on GitHub is dated 30 Nov 2022. Kip found it on Show HN on 21 Jul 2022.
- Is pg_jsonschema open source?
- Its source is public on GitHub at supabase/pg_jsonschema under the Apache-2.0 licence.
- What does pg_jsonschema run on?
- Library.
- Is pg_jsonschema free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is pg_jsonschema still maintained?
- Yes. It had a commit or release in the last 90 days as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | supabase/pg_jsonschema REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-32179856. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.