Skip to content

Commit

Permalink
Also allow string for JSON types
Browse files Browse the repository at this point in the history
  • Loading branch information
darunrs committed Jul 11, 2024
1 parent 45a2851 commit 9fe404a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/utils/pgSchemaTypeGen.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ export class PgSchemaTypeGen {
// UUID type
uuid: 'string',
// JSON types
json: 'any',
jsonb: 'any',
json: 'string | any',
jsonb: 'string | any',
// Arrays
'integer[]': 'number[]',
'text[]': 'string[]',
Expand Down

0 comments on commit 9fe404a

Please sign in to comment.