diff options
author | mustiikhalil <mustii@mmk.one> | 2021-10-07 23:22:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-07 23:22:22 +0200 |
commit | 4c7a9c10d31ecea7b72fed50d735cecea248b6ea (patch) | |
tree | da61cba4ed346977a01959dc28dead6cf279371f /include | |
parent | 38295a1873c4ee1486efa35f6ba5dc21ac8d884b (diff) | |
download | flatbuffers-4c7a9c10d31ecea7b72fed50d735cecea248b6ea.tar.gz flatbuffers-4c7a9c10d31ecea7b72fed50d735cecea248b6ea.tar.bz2 flatbuffers-4c7a9c10d31ecea7b72fed50d735cecea248b6ea.zip |
Adds JSON encoding to swift (#6874)
Updates generated code & removes unneeded protocol
Updates cpp to only generate code when flag is passed
Updates code gen script
Diffstat (limited to 'include')
-rw-r--r-- | include/flatbuffers/idl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/flatbuffers/idl.h b/include/flatbuffers/idl.h index 48280493..3ee02a95 100644 --- a/include/flatbuffers/idl.h +++ b/include/flatbuffers/idl.h @@ -568,6 +568,7 @@ struct IDLOptions { bool gen_nullable; bool java_checkerframework; bool gen_generated; + bool gen_json_coders; std::string object_prefix; std::string object_suffix; bool union_value_namespacing; @@ -662,6 +663,7 @@ struct IDLOptions { gen_nullable(false), java_checkerframework(false), gen_generated(false), + gen_json_coders(false), object_suffix("T"), union_value_namespacing(true), allow_non_utf8(false), |