Skip to content

Commit

Permalink
Fixes #57
Browse files Browse the repository at this point in the history
  • Loading branch information
Semprini committed Dec 2, 2023
1 parent a0a9766 commit 33327ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mdg/templates/Schema/avro.avsc.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"{{ enum | uppercase | replace(" ","_")}}",{% endfor %}
"{{ attr.classification.values[-1] | uppercase | replace(" ","_") }}"
]
}{% else %}"type": {% if not attr.is_id %}[ {% if attr.dest_type != 'string' %}"string",{% endif %}"null"{% endif %}"{{attr.dest_type}}"{% if not attr.is_id %} ], "default": "undefined"{% endif %}{% endif %}
}{% else %}"type": {% if not attr.is_id %}[ {% if attr.dest_type != 'string' %}"string",{% endif %}"null", {% endif %}"{{attr.dest_type}}"{% if not attr.is_id %} ], "default": "undefined"{% endif %}{% endif %}
},{% endfor %}{% endif %}{% for attr in assoc.source.attributes[:-1] %}
{
"name": "{{ attr.name | case_attribute }}",
Expand Down Expand Up @@ -70,7 +70,7 @@
"{{ enum | uppercase | replace(" ","_") | replace("/","_") }}",{% endfor %}
"{{ attr.classification.values[-1] | uppercase | replace(" ","_") }}"
]
}{% else %}"type": ["{{attr.dest_type}}"{% if not attr.is_id %}, "null" ], "default": "undefined"{% else %}]{% endif %}{% endif %}
}{% else %}"type": [{% if attr.dest_type!="string" %}"string", {% endif %}"{{attr.dest_type}}"{% if not attr.is_id %}, "null" ], "default": "undefined"{% else %}]{% endif %}{% endif %}
},{% endfor %}{% endif %}{% for attr in cls.attributes[:-1] %}
{
"name": "{{ attr.name | case_attribute }}",
Expand Down

0 comments on commit 33327ec

Please sign in to comment.