| Name |
Last commit
|
Last update |
|---|---|---|
| .vscode | ||
| examples | ||
| include/dap | ||
| kokoro | ||
| src | ||
| third_party | ||
| tools/protocol_gen | ||
| .clang-format | ||
| .gitignore | ||
| .gitmodules | ||
| CMakeLists.txt | ||
| CONTRIBUTING | ||
| LICENSE | ||
| README.md | ||
| clang-format-all.sh |
Empty structs were being serialized as `null`, when they should have been serialized as `{}`.
This was due to the type inference on the serializer - where no calls to `field()` would result in the default `null` type.
To solve this, the `serialize(const void* object, const std::initializer_list<Field>&)` inline helper has been promoted to a virtual function (and renamed to `fields()`).
The JSON serializer implementation of this now first sets the object type to `object`, even if there are no fields to serialize.
Added test for this.
Fixes: #10
| Name |
Last commit
|
Last update |
|---|---|---|
| .vscode | Loading commit data... | |
| examples | Loading commit data... | |
| include/dap | Loading commit data... | |
| kokoro | Loading commit data... | |
| src | Loading commit data... | |
| third_party | Loading commit data... | |
| tools/protocol_gen | Loading commit data... | |
| .clang-format | Loading commit data... | |
| .gitignore | Loading commit data... | |
| .gitmodules | Loading commit data... | |
| CMakeLists.txt | Loading commit data... | |
| CONTRIBUTING | Loading commit data... | |
| LICENSE | Loading commit data... | |
| README.md | Loading commit data... | |
| clang-format-all.sh | Loading commit data... |