Tell json to be more strict about missing fields to avoid that bug in the future, then fix all of the data.

This commit is contained in:
Zed A. Shaw 2025-02-09 14:17:07 -05:00
parent b6831b75a3
commit 27bb08d62c
4 changed files with 56 additions and 39 deletions

View file

@ -6,7 +6,7 @@
#define ENROLL_COMPONENT(COMPONENT, ...) \
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT(COMPONENT, __VA_ARGS__); \
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(COMPONENT, __VA_ARGS__); \
template <> struct NameOf<COMPONENT> { \
static constexpr const char *name = #COMPONENT; \
};