Skip to content

Commit 004139f

Browse files
committed
Update the sample template for JSON output
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 6c56f1f commit 004139f

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/attributecode/templates/default_json.template

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,12 @@
44
"entries": [
55
{% for about_object in abouts %}
66
{
7-
"name": "{{ about_object.name.value }}"{% if about_object.version.value -%},{%- endif %}
7+
"name": "{{ about_object.name.value }}"{% if about_object.version.value or about_object.license_expression.value-%},{%- endif %}
88
{% if about_object.version.value -%}
9-
"version": "{{ about_object.version.value }}"{% if about_object.license.value -%},{%- endif %}
9+
"version": "{{ about_object.version.value }}"{% if about_object.license_expressio.value-%},{%- endif %}
1010
{%- endif %}
11-
{% if about_object.license.value -%}
12-
"license": "{{ about_object.license.value }}"
13-
{%- endif %}
14-
{% if about_object.copyright.value -%}
15-
"copyrigth": "{{ about_object.copyright.value }}"
11+
{% if about_object.license_expression.value -%}
12+
"license_expression": "{{ about_object.license_expression.value }}"
1613
{%- endif %}
1714
}{% if not loop.last -%},{%- endif %}
1815
{%- endfor %}

0 commit comments

Comments
 (0)