aboutsummaryrefslogtreecommitdiff
path: root/src/schema_schema.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2022-03-26 20:13:37 -0600
committerMelody Horn <melody@boringcactus.com>2022-03-26 20:13:37 -0600
commit73740e6dd0723113e22a26aa389e545085f58857 (patch)
tree6da14cdf3e3f336d602a5a086d2478be50b78c1c /src/schema_schema.rs
parent26a20cf4f3a71ccdd7c6abb06cffd4c12d08395e (diff)
downloadkdl-schema-73740e6dd0723113e22a26aa389e545085f58857.tar.gz
kdl-schema-73740e6dd0723113e22a26aa389e545085f58857.zip
refactor lib out of modules and test helper into a module
Diffstat (limited to 'src/schema_schema.rs')
-rw-r--r--src/schema_schema.rs24
1 files changed, 11 insertions, 13 deletions
diff --git a/src/schema_schema.rs b/src/schema_schema.rs
index d548f5a..c7cc2ec 100644
--- a/src/schema_schema.rs
+++ b/src/schema_schema.rs
@@ -1,7 +1,5 @@
use lazy_static::lazy_static;
-use super::node::validation::*;
-use super::node::*;
use super::*;
lazy_static! {
@@ -742,51 +740,51 @@ fn make_info_node() -> Node {
fn make_schema_info() -> Info {
Info {
- title: vec![info::TextValue {
+ title: vec![TextValue {
text: s("KDL Schema"),
lang: s("en"),
}],
- description: vec![info::TextValue {
+ description: vec![TextValue {
text: s("KDL Schema KDL schema in KDL"),
lang: s("en"),
}],
- authors: vec![info::Person {
+ authors: vec![Person {
name: s("Kat Marchán"),
orcid: None,
- links: vec![info::Link {
+ links: vec![Link {
iri: s("https://github.com/zkat"),
rel: s("self"),
lang: None,
}],
}],
- contributors: vec![info::Person {
+ contributors: vec![Person {
name: s("Lars Willighagen"),
orcid: None,
- links: vec![info::Link {
+ links: vec![Link {
iri: s("https://github.com/larsgw"),
rel: s("self"),
lang: None,
}],
}],
- links: vec![info::Link {
+ links: vec![Link {
iri: s("https://github.com/zkat/kdl"),
rel: s("documentation"),
lang: None,
}],
- licenses: vec![info::License {
+ licenses: vec![License {
name: s("Creative Commons Attribution-ShareAlike 4.0 International License"),
spdx: s("CC-BY-SA-4.0"),
- link: vec![info::Link {
+ link: vec![Link {
iri: s("https://creativecommons.org/licenses/by-sa/4.0/"),
rel: None,
lang: s("en"),
}],
}],
- published: Some(info::Date {
+ published: Some(Date {
date: s("2021-08-31"),
time: None,
}),
- modified: Some(info::Date {
+ modified: Some(Date {
date: s("2021-09-01"),
time: None,
}),