From 276dc149119f4032fef60ca7fbb94c7e7ce73049 Mon Sep 17 00:00:00 2001 From: EmilyGraceSeville7cf Date: Sun, 10 Dec 2023 04:30:19 +1000 Subject: [PATCH] feat: support `unique` property --- schemas/bashly.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/schemas/bashly.json b/schemas/bashly.json index c5488e59..3f648fe4 100644 --- a/schemas/bashly.json +++ b/schemas/bashly.json @@ -83,6 +83,21 @@ "integer", "non_empty" ] + }, + "unique": { + "title": "unique", + "description": "Whether the current positional argument is unique\nhttps://bashly.dannyb.co/configuration/argument/#unique", + "type": "boolean", + "default": false + } + }, + "dependencies": { + "unique": { + "properties": { + "repeatable": { + "const": true + } + } } }, "$ref": "#/definitions/custom-properties", @@ -219,6 +234,21 @@ "integer", "non_empty" ] + }, + "unique": { + "title": "unique", + "description": "Whether the current flag is unique\nhttps://bashly.dannyb.co/configuration/flag/#unique", + "type": "boolean", + "default": false + } + }, + "dependencies": { + "unique": { + "properties": { + "repeatable": { + "const": true + } + } } }, "$ref": "#/definitions/custom-properties",