You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JSON Parser fails for type override on complex package names #255
Activity
maxiride commentedon Apr 26, 2020
I've closed #462 since I'm pretty sure it was a duplicate issue.
Is the bug caused by the presence of a dot in the package name?
rupertevill commentedon Apr 26, 2020
Correct @maxiride. The presence of a dot in the package name causes the issue.
maxiride commentedon Apr 26, 2020
Too bad... those packages are my holy grail.
Anyway,@rupertevill did you eventually started working on a PR?As a temporary (hopefully) fix I went down the dangerous path of issuing a replace all in the models and the functions generated.
I went on with a plausible hotfix myself.
kyleconroy commentedon Nov 15, 2020
This has been fixed in main and will be released in the next version. Here's what it looks like:
{ "version": "1", "packages": [ { "path": "go", "name": "override", "engine": "postgresql", "schema": "schema.sql", "queries": "query.sql", "overrides": [ { "column": "foo.bio", "nullable": true, "go_type": { "import": "gopkg.in/guregu/null.v4", "type": "String" }, } ] } ] }