File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,8 @@ var expected = {
136136 type : 'string'
137137 } ,
138138 completed : {
139- type : 'number'
139+ type : 'string' ,
140+ pattern : '^\\d+$'
140141 }
141142 } ,
142143
Original file line number Diff line number Diff line change 66 "url" : " https://github.com/radify/collimator.git"
77 },
88 "main" : " lib/collimator.js" ,
9+ "types" : " lib/collimator.d.ts" ,
910 "author" : " Radify" ,
1011 "license" : " BSD-3-Clause" ,
1112 "devDependencies" : {
Original file line number Diff line number Diff line change @@ -96,10 +96,10 @@ export function properties(columns: Column[]): SchemaProperties {
9696 */
9797export function property ( column : Column ) : SchemaProperties {
9898 const TYPES :any = {
99- bigserial : { type : 'number ' } ,
99+ bigserial : { type : 'string' , pattern : '^\\d+$ '} ,
100100 boolean : { type : 'boolean' } ,
101101 character : { type : 'string' } ,
102- bigint : { type : 'number ' } ,
102+ bigint : { type : 'string' , pattern : '^\\d+$ '} ,
103103 integer : { type : 'number' } ,
104104 json : { type : 'object' } ,
105105 jsonb : { type : 'object' } ,
You can’t perform that action at this time.
0 commit comments