Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Data Type? #3

Open
theory opened this issue Apr 9, 2024 · 0 comments
Open

Add a Data Type? #3

theory opened this issue Apr 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@theory
Copy link
Contributor

theory commented Apr 9, 2024

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.

@theory theory added the enhancement New feature or request label Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant