aboutsummaryrefslogtreecommitdiff
path: root/docs/source
diff options
context:
space:
mode:
authorcryptocode <stein@nano.org>2019-12-06 02:33:45 +0100
committerWouter van Oortmerssen <aardappel@gmail.com>2019-12-05 17:33:45 -0800
commita8e800bd7cf0ea475a8a60b612c500fe378a7ac5 (patch)
tree8ca4164bf101e892ee895d7e328df7720032d49d /docs/source
parentd7530ae9619d3c4a21034fa44e9a1ad101bc25b7 (diff)
downloadflatbuffers-a8e800bd7cf0ea475a8a60b612c500fe378a7ac5.tar.gz
Add --force-empty-vectors option (#5653)
The rationale for this option is that JSON clients typically want empty arrays (i.e [] in the JSON) instead of missing properties, but not empty strings when the value isn't set. --force-empty is kept as-is, i.e. it will force both empty strings and vectors. Closes #5652
Diffstat (limited to 'docs/source')
-rw-r--r--docs/source/Compiler.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/source/Compiler.md b/docs/source/Compiler.md
index 9eaabf81..df037866 100644
--- a/docs/source/Compiler.md
+++ b/docs/source/Compiler.md
@@ -203,5 +203,8 @@ Additional options:
- `--force-empty` : When serializing from object API representation, force
strings and vectors to empty rather than null.
+- `--force-empty-vectors` : When serializing from object API representation, force
+ vectors to empty rather than null.
+
NOTE: short-form options for generators are deprecated, use the long form
whenever possible.