]> git.puffer.fish Git - matthieu/frr.git/commitdiff
doc: specify output for json commands w/ no output
authorQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 6 Jul 2020 16:07:33 +0000 (12:07 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 6 Jul 2020 16:07:33 +0000 (12:07 -0400)
JSON commands should always return valid JSON

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
doc/developer/workflow.rst

index eaf6c67bc92e805826400f6f8678f92f57cad751..ef259820772602dc9d91a7f56991f1f8adef8ea3 100644 (file)
@@ -1034,7 +1034,9 @@ the development mailing list / public Slack instance.
 JSON Output
 ^^^^^^^^^^^
 
-All JSON keys are to be camelCased, with no spaces.
+* All JSON keys are to be camelCased, with no spaces
+* Commands which output JSON should produce ``{}`` if they have nothing to
+  display
 
 Use of const
 ^^^^^^^^^^^^