Is it possible to continue on error, but ignore that parts that failed parsing? #135
Unanswered
acheronfail
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to have
figment
return all the successfully parsed items, and ignore the ones it didn't know about? Consider this example:Right now, this example fails completely with an
UnknownVariant
error (rightly so, since there's an enum that's not known).I'm wondering, if there's a way to return all the config that was parsed, and ignore parts of it that failed? 🤔
For an application I'm making, it would be useful to continue with as much info as possible rather than fail completely on a parsing error...
Beta Was this translation helpful? Give feedback.
All reactions