jsonschema2db
jsonschema2db copied to clipboard
Postgres array types
I noticed when inspecting types that the postgres array type is not supported. Are there plans to support it? Openapi has an array type which triggered this issue for me.
That's a good point – we don't use arrays for our use case at Better – but there's nothing fundamentally that stops from mapping it to Postgres.
Does this mean that this library doesn't support many-to-many relationships?
json schemas don't support many-to-many, so yes that's right
Sorry, it's a tad absurd to me that full ID support exists but arrays are broken. Why not convert them to index-keyed dictionaries? That's what I've ended up doing. :man_shrugging: