From ad5a45373d5adc62ce291764a41a2254ee73f699 Mon Sep 17 00:00:00 2001 From: Lars Willighagen Date: Thu, 2 Sep 2021 02:15:11 +0200 Subject: [PATCH] make all info child nodes optional Fix https://github.com/kdl-org/kdl/pull/120#discussion_r700310576 --- SCHEMA-SPEC.md | 4 ++-- examples/kdl-schema.kdl | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/SCHEMA-SPEC.md b/SCHEMA-SPEC.md index 6298c72..f689ebb 100644 --- a/SCHEMA-SPEC.md +++ b/SCHEMA-SPEC.md @@ -48,9 +48,9 @@ None. #### Children -* [`title`](#title-node): one or more titles +* [`title`](#title-node) (optional): zero or more titles * [`description`](#description-node) (optional): zero or more descriptions -* [`author`](#author-and-contributor-nodes): one or more authors +* [`author`](#author-and-contributor-nodes) (optional): zero or more authors * [`contributor`](#author-and-contributor-nodes) (optional): zero or more contributors * [`link`](#link-node) (optional): zero or more URLs * [`license`](#license-node) (optional): zero or more licenses diff --git a/examples/kdl-schema.kdl b/examples/kdl-schema.kdl index 0b1def6..fc2a9c7 100644 --- a/examples/kdl-schema.kdl +++ b/examples/kdl-schema.kdl @@ -33,7 +33,6 @@ document { node "info" description="A child node that describes the schema itself." { children { node "title" description="The title of the schema or the format it describes" { - min 1 value description="The title text" { type "string" min 1 @@ -52,7 +51,6 @@ document { prop ref="#info-lang" } node "author" description="Author of the schema" { - min 1 value id="info-person-name" description="Person name" { type "string" min 1