You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- If an enum value appears more than once in the mapping, only the first occurrence will be used for serialization,
41
-
subsequent mappings for the same enum value will be ignored.
42
-
- If a JSON value appears more than once in the mapping, only the first occurrence will be used for deserialization,
43
-
subsequent mappings for the same JSON value will be ignored.
40
+
- Duplicate enum or JSON values in the mapping are not supported. Only the first occurrence will be used, and subsequent mappings will be ignored. This behavior is currently tolerated but may become an error in future versions.
44
41
- Unlike `NLOHMANN_JSON_SERIALIZE_ENUM`, this macro enforces strict validation:
45
42
- Attempting to serialize an unmapped enum value will throw a `type_error.302` exception
46
43
- Attempting to deserialize an unmapped JSON value will throw a `type_error.302` exception
0 commit comments