Comments (2)
What, in your opinion, would be the expected result?
As far as I can see, LiteDB serializes Enums as string and when you are trying to parse the string into an enum value, that doesnt exist, it fails.
from litedb.
What, in your opinion, would be the expected result?
As far as I can see, LiteDB serializes Enums as string and when you are trying to parse the string into an enum value, that doesnt exist, it fails.
I agree the error by default seems to be standard since I think behavior in System.Text.Json is the same. I'm wondering if a config option for UnknownEnumAsDefault
like EnumAsInteger
for BsonMapper is available to deal with this globally? Or can I implement that myself with BsonMapper.Global.RegisterType
?
from litedb.
Related Issues (20)
- Stop ads[BUG]
- FirstOrDefault causes transactions to be not removed HOT 1
- [BUG] Use EnterTransaction() before EnterLock HOT 2
- [BUG] At least for now, please do not update to 5.0.18 or 5.0.19. These two versions have more bugs.Keep Use Version -5.0.17 until Author Fix that HOT 3
- About LiteDB future HOT 4
- Incorrect argument validation exception
- [SUGGESTION] Add "Used By" section to the readme
- [BUG] Empty Fields are Serialized as null HOT 1
- [BUG] Upgrading from Version 4 Throws LiteException: File is not encrypted as of Version 5.0.18 HOT 2
- [QUESTION] LiteDB Opens Non-Database Files and Throws Exception on Large Invalid Content HOT 1
- [BUG] This engine instance already disposed when using InsertBulk HOT 2
- "ENSURE: empty page must be defined as empty type" when adding and removing from collections simultaneously HOT 1
- Make all internal Task SyncContext agnostic HOT 2
- [BUG] LiteDB Docs FileStorage section "fs.Find("$/photos/2014/");" not supported in v5
- [SUGGESTION] Upgrade Framework dependencies HOT 1
- [QUESTION] Parameterized queries not working?
- [QUESTION] Save :memory: to disk? HOT 2
- [BUG] HOT 1
- [QUESTION] UpdateMany with Dictionary<string, object>
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from litedb.