Latest / Data & databases

pg_jsonschema

github.com · Open source · Active

Postgres extension that validates json and jsonb columns against JSON Schema

Visit github.com ↗Share

  • validation
  • postgres json validation
  • json schema postgres
  • jsonb validation
  • postgres extension
  • json schema 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

Releases per month, last 24 months (1 in total, busiest month 1).
  1. Repository created on GitHub: supabase/pg_jsonschema
  2. Found: oliverrice posted it to Show HN. Show HN
  3. Release v0.1.3
  4. Release v0.1.4
  5. Release v0.2.0
  6. Release v0.3.0
  7. Release v0.3.1
  8. Release v0.3.3
  9. Release v0.3.4
  10. Day-7 check recorded by Kip (details)
  11. 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

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositorysupabase/pg_jsonschema
REST API record
GitHub Releasesrelease 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

More in Data & databases

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.