Pg_jsonschema – JSON Schema Support for Postgres
PG community had a similar patch, which got reverted from PG 15 on the last minute: <a href="https://www.depesz.com/2022/04/06/waiting-for-postgresql-15-json_table/" rel="nofollow">https://www.depesz.com/2022/04/06/waiting-for-postgresql-15-...</a>