From c16e0679869b8c5c2c5651a81b12cd8603a44462 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Sun, 27 Mar 2022 22:21:44 -0600 Subject: allow contributors links in the schema schema --- src/schema_schema.rs | 4 ++++ tests/kdl-schema.kdl | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/schema_schema.rs b/src/schema_schema.rs index 07ff463..11ccb4e 100644 --- a/src/schema_schema.rs +++ b/src/schema_schema.rs @@ -623,6 +623,10 @@ fn make_info_node() -> Node { description: s("Contributor to the schema"), values: vec![ref_to_id("info-person-name")], props: vec![ref_to_id("info-orcid")], + children: vec![Children { + nodes: vec![ref_to_id("info-link")], + ..Children::default() + }], ..Node::default() }, Node { diff --git a/tests/kdl-schema.kdl b/tests/kdl-schema.kdl index 4315199..76a1080 100644 --- a/tests/kdl-schema.kdl +++ b/tests/kdl-schema.kdl @@ -78,6 +78,9 @@ document { node "contributor" description="Contributor to the schema" { value ref=r#"[id="info-person-name"]"# prop ref=r#"[id="info-orcid"]"# + children { + node ref=r#"[id="info-link"]"# + } } node "link" id="info-link" description="Links to itself, and to sources describing it" { value description="A URL that the link points to" { -- cgit v1.2.3