jsonschema2db icon indicating copy to clipboard operation
jsonschema2db copied to clipboard

Postgres array types

Open robinsonkwame opened this issue 5 years ago • 4 comments

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.

robinsonkwame avatar Apr 03 '19 13:04 robinsonkwame

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.

erikbern avatar Apr 03 '19 19:04 erikbern

Does this mean that this library doesn't support many-to-many relationships?

mbrowne avatar Dec 16 '20 17:12 mbrowne

json schemas don't support many-to-many, so yes that's right

erikbern avatar Jan 04 '21 16:01 erikbern

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:

ctrlcctrlv avatar Sep 14 '22 05:09 ctrlcctrlv