Hi knex-schema-inspector team,
Due to the nature of this regex, it seems that the default value of columns defined as json[] or jsonb[] will be parsed as Json objects and throw an uncaught error.
Reproduction
- define a table with the following column;
my_column jsonb[] default ARRAY[]::jsonb[],
- retrieve information for the columns in our table;
In this case, the parsing will look like JSON.parse("ARRAY[]"), which is not a valid format.