Skip to content

Implement lossy decoding for scalar values#214

Open
garrettrayj wants to merge 1 commit into
nmdias:mainfrom
garrettrayj:lossy-decoding
Open

Implement lossy decoding for scalar values#214
garrettrayj wants to merge 1 commit into
nmdias:mainfrom
garrettrayj:lossy-decoding

Conversation

@garrettrayj
Copy link
Copy Markdown

Adds a lossy parameter, default false, to Feed and typed initializers. When true, if there's an error decoding a value nil is filled in instead of the whole parse operation erroring out.

Related to #173. This solution is not particularly graceful, but it does the trick when you just need basic info and can tolerate missing fields due to malformed values.

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

Successfully merging this pull request may close these issues.

1 participant