From 026b325b9f1a1a0170d261779bf08dd7fcd90715 Mon Sep 17 00:00:00 2001 From: Michelle Weidling Date: Mon, 4 Apr 2022 07:28:23 +0200 Subject: [PATCH 1/2] fix: introduce Boolean where necessary --- content/page/specs.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/page/specs.md b/content/page/specs.md index fbe40a5..f5f29d3 100644 --- a/content/page/specs.md +++ b/content/page/specs.md @@ -37,6 +37,7 @@ The current version: 0.4.0. |----|----| | \[…\] | array | | string | a sequence of characters, MAY be empty | +| boolean | `true` or `false` | | URL | a valid URL pointing to a resource | | MIME type | a valid MIME type according to IANA. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) | | semver | a string matching the pattern `^\d+\.\d+\.\d+$`, representing a semantic version number | @@ -120,8 +121,8 @@ If the Module Object is set, at least one modules has to be selected. | Field Name | Cardinality | Type | Description | |----|----|----|----| -| edition-manuscripts | ? | string | `true` or `false` | -| edition-prints | ? | string | `true` or `false` | +| edition-manuscripts | ? | boolean | `true` or `false` | +| edition-prints | ? | boolean | `true` or `false` | ### Manifest Object -- GitLab From 52224fad25ee3837e20ae14d97052746d3cbaeb9 Mon Sep 17 00:00:00 2001 From: Michelle Weidling Date: Mon, 4 Apr 2022 09:53:47 +0200 Subject: [PATCH 2/2] fix: update JSON schema --- schema/module.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/schema/module.json b/schema/module.json index b27d156..47fa25d 100644 --- a/schema/module.json +++ b/schema/module.json @@ -12,8 +12,7 @@ }, "edition-prints": { "description": "module for editions of printed works", - "type": "string", - "enum": ["true", "false"] + "type": "boolean" } }, "patternProperties": { -- GitLab