diff --git a/crates/weaver_forge/expected_output/attribute_groups.md b/crates/weaver_forge/expected_output/attribute_groups.md index 849c0b2e..38d2cf9c 100644 --- a/crates/weaver_forge/expected_output/attribute_groups.md +++ b/crates/weaver_forge/expected_output/attribute_groups.md @@ -1,6 +1,9 @@ # Semantic Convention Attribute Groups - +## flatten +- one +- two +- three ## Group `attributes.jvm.memory` (attribute_group) ### Brief diff --git a/crates/weaver_forge/expected_output/builtin.md b/crates/weaver_forge/expected_output/builtin.md deleted file mode 100644 index 788e39cc..00000000 --- a/crates/weaver_forge/expected_output/builtin.md +++ /dev/null @@ -1,4 +0,0 @@ -## flatten -- one -- two -- three \ No newline at end of file diff --git a/crates/weaver_forge/templates/test/attribute_groups.md b/crates/weaver_forge/templates/test/attribute_groups.md index 5cd2168b..4a03936e 100644 --- a/crates/weaver_forge/templates/test/attribute_groups.md +++ b/crates/weaver_forge/templates/test/attribute_groups.md @@ -1,5 +1,11 @@ # Semantic Convention Attribute Groups +## flatten +{%- set test = [["one", "two"], ["three"]] | flatten -%} +{% for item in test %} +- {{item}} +{%- endfor -%} + {% for group in ctx %} ## Group `{{ group.id }}` ({{ group.type }}) diff --git a/crates/weaver_forge/templates/test/builtin.md b/crates/weaver_forge/templates/test/builtin.md deleted file mode 100644 index 36940ae1..00000000 --- a/crates/weaver_forge/templates/test/builtin.md +++ /dev/null @@ -1,5 +0,0 @@ -## flatten -{%- set test = [["one", "two"], ["three"]] | flatten -%} -{% for item in test %} -- {{item}} -{%- endfor -%} \ No newline at end of file diff --git a/crates/weaver_forge/templates/test/weaver.yaml b/crates/weaver_forge/templates/test/weaver.yaml index 58142ae5..5c836f7b 100644 --- a/crates/weaver_forge/templates/test/weaver.yaml +++ b/crates/weaver_forge/templates/test/weaver.yaml @@ -13,8 +13,3 @@ type_mapping: "double[]": "[]double" "boolean[]": "[]bool" "string[]": "[]string" - -templates: - - pattern: builtin.md - filter: .groups[] - application_mode: single \ No newline at end of file