pg_jsonschema is a Postgres extension that provides built-in function for JSON schema validation. This allows us to validate a JSON schema against a SQL schema object. We should support the json_matches_schema built-in in CockroachDB that can accomplish this functionality. This is also something that is supported by Oracle DB.
The result of this built-in can be used as part of the check constraint when declaring the schema for a table:
pg_jsonschema
is a Postgres extension that provides built-in function for JSON schema validation. This allows us to validate a JSON schema against a SQL schema object. We should support thejson_matches_schema
built-in in CockroachDB that can accomplish this functionality. This is also something that is supported by Oracle DB.The result of this built-in can be used as part of the check constraint when declaring the schema for a table:
There are three built-ins that
pg_jsonschema
supports and we can do this in phases:Jira issue: CRDB-31110