{"action":"created","issue":{"url":"https://api.github.com/repos/Vincit/objection.js/issues/1096","repository_url":"https://api.github.com/repos/Vincit/objection.js","labels_url":"https://api.github.com/repos/Vincit/objection.js/issues/1096/labels{/name}","comments_url":"https://api.github.com/repos/Vincit/objection.js/issues/1096/comments","events_url":"https://api.github.com/repos/Vincit/objection.js/issues/1096/events","html_url":"https://github.com/Vincit/objection.js/issues/1096","id":364568368,"node_id":"MDU6SXNzdWUzNjQ1NjgzNjg=","number":1096,"title":"Inserting in a table having json array and text array results in \"missing dimension value error\"","user":{"login":"nitish-vahan","id":42341198,"node_id":"MDQ6VXNlcjQyMzQxMTk4","avatar_url":"https://avatars2.githubusercontent.com/u/42341198?v=4","gravatar_id":"","url":"https://api.github.com/users/nitish-vahan","html_url":"https://github.com/nitish-vahan","followers_url":"https://api.github.com/users/nitish-vahan/followers","following_url":"https://api.github.com/users/nitish-vahan/following{/other_user}","gists_url":"https://api.github.com/users/nitish-vahan/gists{/gist_id}","starred_url":"https://api.github.com/users/nitish-vahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitish-vahan/subscriptions","organizations_url":"https://api.github.com/users/nitish-vahan/orgs","repos_url":"https://api.github.com/users/nitish-vahan/repos","events_url":"https://api.github.com/users/nitish-vahan/events{/privacy}","received_events_url":"https://api.github.com/users/nitish-vahan/received_events","type":"User","site_admin":false},"labels":[{"id":818253246,"node_id":"MDU6TGFiZWw4MTgyNTMyNDY=","url":"https://api.github.com/repos/Vincit/objection.js/labels/needs%20more%20info","name":"needs more info","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-09-27T17:01:02Z","updated_at":"2018-09-30T07:50:34Z","closed_at":null,"author_association":"NONE","body":"```  static get jsonSchema() {   \r\n static get jsonSchema() {\r\n        return {\r\n            type: 'object',\r\n            required: [\r\n                'channels'\r\n            ],\r\n            properties: {\r\n                id: {type: 'string', format: 'uuid'},\r\n                channels: { type: 'array', items: { type: 'string', enum: enums.campaignChannels }}\r\n                requirements: {\r\n                    type: 'array',\r\n                    items: {\r\n                        type: 'object',\r\n                        required: ['requirement','hardRequirement'],\r\n                        properties: {\r\n                            requirement: {type: 'string', enum: enums.jobRequirements},\r\n                            hardRequirement: {type: 'boolean'}\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n        };\r\n    }\r\n    ```\r\n\r\nThis is my schema which has text arrays ( channels) and also json array ( requirements), when i validate the schema, it return valid but inserting into the array results in \"missing dimension value\" error. \r\nthis is my error stack trace \r\n\r\n\"error: missing dimension value\r\n    at Connection.parseE (/home/nitish/vahan/JobFinder/node_modules/pg/lib/connection.js:539:11)\r\n    at Connection.parseMessage (/home/nitish/vahan/JobFinder/node_modules/pg/lib/connection.js:366:17)\r\n    at Socket.<anonymous> (/home/nitish/vahan/JobFinder/node_modules/pg/lib/connection.js:105:22)\r\n    at Socket.emit (events.js:182:13)\r\n    at addChunk (_stream_readable.js:277:12)\r\n    at readableAddChunk (_stream_readable.js:262:11)\r\n    at Socket.Readable.push (_stream_readable.js:217:10)\r\n    at TCP.onread (net.js:638:20)\r\nFrom previous event:\r\n    at Client_PG._query (/home/nitish/vahan/JobFinder/node_modules/knex/lib/dialects/postgres/index.js:260:12)\r\n    at Client_PG.query (/home/nitish/vahan/JobFinder/node_modules/knex/lib/client.js:202:17)\r\n    at Runner.<anonymous> (/home/nitish/vahan/JobFinder/node_modules/knex/lib/runner.js:146:36)\r\nFrom previous event:\r\n    at /home/nitish/vahan/JobFinder/node_modules/knex/lib/runner.js:48:21\r\n    at runCallback (timers.js:696:18)\r\n    at tryOnImmediate (timers.js:667:5)\r\n    at processImmediate (timers.js:649:5)\r\nFrom previous event:\r\n    at Runner.run (/home/nitish/vahan/JobFinder/node_modules/knex/lib/runner.js:34:31)\r\n    at Builder.Target.then (/home/nitish/vahan/JobFinder/node_modules/knex/lib/interface.js:20:43)\""},"comment":{"url":"https://api.github.com/repos/Vincit/objection.js/issues/comments/425702119","html_url":"https://github.com/Vincit/objection.js/issues/1096#issuecomment-425702119","issue_url":"https://api.github.com/repos/Vincit/objection.js/issues/1096","id":425702119,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTcwMjExOQ==","user":{"login":"nitish-vahan","id":42341198,"node_id":"MDQ6VXNlcjQyMzQxMTk4","avatar_url":"https://avatars2.githubusercontent.com/u/42341198?v=4","gravatar_id":"","url":"https://api.github.com/users/nitish-vahan","html_url":"https://github.com/nitish-vahan","followers_url":"https://api.github.com/users/nitish-vahan/followers","following_url":"https://api.github.com/users/nitish-vahan/following{/other_user}","gists_url":"https://api.github.com/users/nitish-vahan/gists{/gist_id}","starred_url":"https://api.github.com/users/nitish-vahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitish-vahan/subscriptions","organizations_url":"https://api.github.com/users/nitish-vahan/orgs","repos_url":"https://api.github.com/users/nitish-vahan/repos","events_url":"https://api.github.com/users/nitish-vahan/events{/privacy}","received_events_url":"https://api.github.com/users/nitish-vahan/received_events","type":"User","site_admin":false},"created_at":"2018-09-30T07:50:34Z","updated_at":"2018-09-30T07:50:34Z","author_association":"NONE","body":"Yes text[] and json[]"}}
{"actor":{"display_login":"nitish-vahan"}}