From 40c7fed2c16ca59c1cc05483589890091c6e799b Mon Sep 17 00:00:00 2001 From: Manuel Fuenmayor Date: Mon, 22 Jul 2024 23:20:44 -0400 Subject: [PATCH] fix: complete schemas-only anchors --- lib/suma/schema_document.rb | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/lib/suma/schema_document.rb b/lib/suma/schema_document.rb index 726e9e7..f077926 100644 --- a/lib/suma/schema_document.rb +++ b/lib/suma/schema_document.rb @@ -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