| Index: tools/grit/grit/format/policy_templates/writers/json_writer.py
|
| diff --git a/tools/grit/grit/format/policy_templates/writers/json_writer.py b/tools/grit/grit/format/policy_templates/writers/json_writer.py
|
| index bc52ed14a56500461b53e62d29ca3a11f749f0a0..7eda7fa0202dbddbb02f94f447eca14ce2db6b9b 100644
|
| --- a/tools/grit/grit/format/policy_templates/writers/json_writer.py
|
| +++ b/tools/grit/grit/format/policy_templates/writers/json_writer.py
|
| @@ -29,6 +29,8 @@ class JsonWriter(template_writer.TemplateWriter):
|
| example_value = policy['annotations']['example_value']
|
| if policy['type'] == 'string':
|
| example_value_str = '"' + example_value + '"'
|
| + elif policy['type'] == 'int':
|
| + example_value_str = str(example_value)
|
| elif policy['type'] == 'list':
|
| if example_value == []:
|
| example_value_str = '[]'
|
|
|