mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 17:57:25 +00:00
This change allows user to decode binary with given schema to JSON representation when schema defines union with struct. Co-authored-by: Derek Bailey <derekbailey@google.com>
19 lines
499 B
C++
19 lines
499 B
C++
#ifndef TESTS_JSON_TEST_H
|
|
#define TESTS_JSON_TEST_H
|
|
|
|
#include <string>
|
|
|
|
namespace flatbuffers {
|
|
namespace tests {
|
|
|
|
void JsonDefaultTest(const std::string& tests_data_path);
|
|
void JsonEnumsTest(const std::string& tests_data_path);
|
|
void JsonOptionalTest(const std::string& tests_data_path, bool default_scalars);
|
|
void ParseIncorrectMonsterJsonTest(const std::string& tests_data_path);
|
|
void JsonUnsortedArrayTest();
|
|
void JsonUnionStructTest();
|
|
|
|
} // namespace tests
|
|
} // namespace flatbuffers
|
|
|
|
#endif
|