Skip to content
New issue

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

ResourceURL is omitted when a *resource.WebPage is Unmarshalled #2

Open
efixler opened this issue Jan 6, 2024 · 0 comments
Open

ResourceURL is omitted when a *resource.WebPage is Unmarshalled #2

efixler opened this issue Jan 6, 2024 · 0 comments

Comments

@efixler
Copy link
Owner

efixler commented Jan 6, 2024

This happens because we mask this field (*net.URL) in order to make it present as a string in JSON., and because we store this as a column in the db, so we don't need (or want) it in the stored JSON blob.

Hydrators are handling this manually, but it's a niggle when hydrating JSON directly, which we only do for tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant