#include "idl_gen_json_schema.h"
#include <algorithm>
#include <iostream>
#include <limits>
#include "flatbuffers/code_generators.h"
#include "flatbuffers/idl.h"
#include "flatbuffers/util.h"
namespace flatbuffers {
namespace jsons {
namespace {
template<class T> static std::string GenFullName(const T *enum_def) { … }
template<class T> static std::string GenTypeRef(const T *enum_def) { … }
static std::string GenType(const std::string &name) { … }
static std::string GenType(BaseType type) { … }
static std::string GenBaseType(const Type &type) { … }
static std::string GenArrayType(const Type &type) { … }
static std::string GenType(const Type &type) { … }
}
class JsonSchemaGenerator : public BaseGenerator { … };
}
static bool GenerateJsonSchema(const Parser &parser, const std::string &path,
const std::string &file_name) { … }
namespace {
class JsonSchemaCodeGenerator : public CodeGenerator { … };
}
std::unique_ptr<CodeGenerator> NewJsonSchemaCodeGenerator() { … }
}