@snowtop/ent 0.1.0-alpha52 → 0.1.0-alpha53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schema/field.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snowtop/ent",
3
- "version": "0.1.0-alpha52",
3
+ "version": "0.1.0-alpha53",
4
4
  "description": "snowtop ent framework",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/schema/field.js CHANGED
@@ -642,6 +642,10 @@ class ListField extends BaseField {
642
642
  }
643
643
  postgresVal(val, jsonType) {
644
644
  if (!jsonType) {
645
+ // support empty strings in list
646
+ if (val === "") {
647
+ val = '"' + val + '"';
648
+ }
645
649
  return val;
646
650
  }
647
651
  return JSON.stringify(val);