Unverified Commit 55d95ed2 authored by Mateu Aguiló Bosch's avatar Mateu Aguiló Bosch Committed by Mateu Aguiló Bosch
Browse files

Issue #3302087 by e0ipso: Fix metadata generator to include type object

parent 11fa296d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
<div {{ '{{ clAttributes }}' }}>
  {{ '{# ' }}Keep the outer div whenever possible it is a nice way to ensure the presence of clAttributes {{ '#}' }}
  {{ '{% ' }}block example_block {{ '%}' }}
    The contents of the example block
  {{ '{% ' }}endblock {{ '%}' }}
</div>
+19 −15
Original line number Diff line number Diff line
@@ -25,6 +25,8 @@
  {% if component_props is not empty %}
  "schemas": {
    "props": {
      "type": "object",
      "properties": {
        {% for prop in component_props %}
        "{{ prop.name }}": {
          "title": "{{ prop.title }}",
@@ -40,9 +42,11 @@
          ],
          {% endif %}
          "type": "{{ prop.type }}"
      }
        }{% if not loop.last %},{% endif %}

        {% endfor %}
      }
    }
  },
  {% endif %}
  "status": "{{ component_status }}"