You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would be interesting to add a jsonshcema data type that's effectively a serialized representation of a Schemas struct. Would also need to either store the $id of the base schema, or else some sort of mapping of $ids to the SchemaIndexs used by boon to identify the schemas within the compiled schemas object.
Then would need alternate sigatures for jsonschema_validates() to take a jsonschema type.
I don't know how possible this is. pgrx provides the #[derive(PostgresType)] macro to automatically serialize a struct as serde_cbor, so if the Schemas type can be serialized as CBOR it should be pretty straightforward.
The text was updated successfully, but these errors were encountered:
I would be interesting to add a
jsonshcema
data type that's effectively a serialized representation of a Schemas struct. Would also need to either store the$id
of the base schema, or else some sort of mapping of$id
s to the SchemaIndexs used by boon to identify the schemas within the compiled schemas object.Then would need alternate sigatures for
jsonschema_validates()
to take ajsonschema
type.I don't know how possible this is. pgrx provides the
#[derive(PostgresType)]
macro to automatically serialize a struct as serde_cbor, so if theSchemas
type can be serialized as CBOR it should be pretty straightforward.The text was updated successfully, but these errors were encountered: