aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2022-03-27 22:21:44 -0600
committerMelody Horn <melody@boringcactus.com>2022-03-27 22:21:44 -0600
commitc16e0679869b8c5c2c5651a81b12cd8603a44462 (patch)
treebda9cd8c4afd404774ddae378172e04460f511f1
parent5ec7457aaf47fb5b5739469337b6e9310462a9b9 (diff)
downloadkdl-schema-c16e0679869b8c5c2c5651a81b12cd8603a44462.tar.gz
kdl-schema-c16e0679869b8c5c2c5651a81b12cd8603a44462.zip
allow contributors links in the schema schema
-rw-r--r--src/schema_schema.rs4
-rw-r--r--tests/kdl-schema.kdl3
2 files changed, 7 insertions, 0 deletions
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" {