Skip to content

Commit

Permalink
fix: complete schemas-only anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelfuenmayor committed Jul 23, 2024
1 parent 3e9e3a5 commit 40c7fed
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions lib/suma/schema_document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,42 @@ def schema_anchors
#{bookmark("{{thing.id}}")}
{% endfor %}
{% endif %}
// _subtype_constraints.liquid
{% if schema.subtype_constraints.size > 0 %}
#{bookmark("subtype_constraints")}
// _subtype_constraint.liquid
{% for thing in schema.subtype_constraints %}
#{bookmark("{{thing.id}}")}
{% endfor %}
{% endif %}
// _functions.liquid
{% if schema.functions.size > 0 %}
#{bookmark("functions")}
// _function.liquid
{% for thing in schema.functions %}
#{bookmark("{{thing.id}}")}
{% endfor %}
{% endif %}
// _procedures.liquid
{% if schema.procedures.size > 0 %}
#{bookmark("procedures")}
// _procedure.liquid
{% for thing in schema.procedures %}
#{bookmark("{{thing.id}}")}
{% endfor %}
{% endif %}
// _rules.liquid
{% if schema.rules.size > 0 %}
#{bookmark("rules")}
// _rule.liquid
{% for thing in schema.rules %}
#{bookmark("{{thing.id}}")}
{% endfor %}
{% endif %}
HEREDOC
end

Expand Down

0 comments on commit 40c7fed

Please sign in to comment.