From a84fecaf96eef0dc5a098e2ffebefde18a1c27c2 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Thu, 8 Dec 2022 16:46:45 +0100 Subject: [PATCH] Update json schema + changelog --- CHANGELOG.md | 2 +- package.json | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 214aeba3..c84efc2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log -## [8.2.0] - 2022-xx-xx +## [8.2.0] - 2022-xx-xx - [Release notes](https://beta.frontmatter.codes/updates/v8.2.0) ### ✨ New features diff --git a/package.json b/package.json index a7a8bc8f..45ea8eb7 100644 --- a/package.json +++ b/package.json @@ -1064,6 +1064,50 @@ "type": "boolean", "default": false, "description": "Specify if the field is required" + }, + "when": { + "type": "object", + "description": "Specify the conditions to show the field", + "properties": { + "fieldRef": { + "type": "string", + "description": "The field ID to use" + }, + "operator": { + "type": "string", + "description": "The operator to use", + "enum": [ + "eq", + "neq", + "contains", + "notContains", + "startsWith", + "endsWith", + "gt", + "gte", + "lt", + "lte", + "minimum", + "maximum", + "exlusiveMinimum", + "exclusiveMaximum" + ] + }, + "value": { + "type": [ + "string", + "number", + "boolean", + "array" + ], + "description": "The value to compare" + }, + "caseSensitive": { + "type": "boolean", + "default": true, + "description": "Specify if the comparison is case sensitive. Default: true" + } + } } }, "additionalProperties": false,