We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First off, thanks for the package. I've been evaluating it and I think it can work for me, which would save me a ton of time.
I'm running into a few issues, though, and this seems related to #27 since I was able to use the same workaround, but this fails to parse:
// UserProfile represents the user profile type UserProfile struct { ID int32 `json:"id"` Email string `json:"email"` Name null.Val[string] `json:"name"` Phone null.Val[string] `json:"phone"` Avatar null.Val[string] `json:"avatar"` Roles []rbac.Role `json:"roles"` Permissions []rbac.Permission `json:"permissions"` }
But updating it to this, it parses fine:
type roles []rbac.Role type permissions []rbac.Permission type nullstring null.Val[string] // UserProfile represents the user profile type UserProfile struct { ID int32 `json:"id"` Email string `json:"email"` Name nullstring `json:"name"` Phone nullstring `json:"phone"` Avatar nullstring `json:"avatar"` Roles roles `json:"roles"` Permissions permissions `json:"permissions"` }
Unfortunately, refactoring to use typed values like this won't work for me since I have a bunch of generated models.
The text was updated successfully, but these errors were encountered:
hi, thanks for the report. gonna check it out
Sorry, something went wrong.
fixed? @qequ
No branches or pull requests
First off, thanks for the package. I've been evaluating it and I think it can work for me, which would save me a ton of time.
I'm running into a few issues, though, and this seems related to #27 since I was able to use the same workaround, but this fails to parse:
But updating it to this, it parses fine:
Unfortunately, refactoring to use typed values like this won't work for me since I have a bunch of generated models.
The text was updated successfully, but these errors were encountered: