From 14f7450fd5b4b9bc9985ea852b66cca3f2000f94 Mon Sep 17 00:00:00 2001 From: Kyle Seifert Date: Tue, 23 Aug 2022 14:24:31 -0600 Subject: [PATCH] schema: allow resource values with empty strings --- dist/flow-spec/IResource.d.ts | 2 +- .../validationSchema/1.0.0-rc4/flowSpecJsonSchema.json | 2 +- dist/resources/validationSchema/current/flowSpecJsonSchema.json | 2 +- src/flow-spec/IResource.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/flow-spec/IResource.d.ts b/dist/flow-spec/IResource.d.ts index dd18fa9f..32604459 100644 --- a/dist/flow-spec/IResource.d.ts +++ b/dist/flow-spec/IResource.d.ts @@ -6,7 +6,7 @@ export interface IResourceValue { modes: SupportedMode[]; /** * Value will accept alphanumerics, white spaces, file path, expressions, conditions, - * @pattern ^[\w \r\n\\\/@:,.!?+*^<>=()"'-]+$ + * @pattern ^[\w \r\n\\\/@:,.!?+*^<>=()"'-]*$ * @format floip-expression */ value: string; diff --git a/dist/resources/validationSchema/1.0.0-rc4/flowSpecJsonSchema.json b/dist/resources/validationSchema/1.0.0-rc4/flowSpecJsonSchema.json index 4cb35941..eca0dcf0 100644 --- a/dist/resources/validationSchema/1.0.0-rc4/flowSpecJsonSchema.json +++ b/dist/resources/validationSchema/1.0.0-rc4/flowSpecJsonSchema.json @@ -381,7 +381,7 @@ "value": { "description": "Value will accept alphanumerics, white spaces, file path, expressions, conditions,", "format": "floip-expression", - "pattern": "^[\\w \\r\\n\\\\\\/@:,.!?+*^<>=()\"'-]+$", + "pattern": "^[\\w \\r\\n\\\\\\/@:,.!?+*^<>=()\"'-]*$", "type": "string" } }, diff --git a/dist/resources/validationSchema/current/flowSpecJsonSchema.json b/dist/resources/validationSchema/current/flowSpecJsonSchema.json index 4cb35941..eca0dcf0 100644 --- a/dist/resources/validationSchema/current/flowSpecJsonSchema.json +++ b/dist/resources/validationSchema/current/flowSpecJsonSchema.json @@ -381,7 +381,7 @@ "value": { "description": "Value will accept alphanumerics, white spaces, file path, expressions, conditions,", "format": "floip-expression", - "pattern": "^[\\w \\r\\n\\\\\\/@:,.!?+*^<>=()\"'-]+$", + "pattern": "^[\\w \\r\\n\\\\\\/@:,.!?+*^<>=()\"'-]*$", "type": "string" } }, diff --git a/src/flow-spec/IResource.ts b/src/flow-spec/IResource.ts index 547ee0f3..1d202a22 100644 --- a/src/flow-spec/IResource.ts +++ b/src/flow-spec/IResource.ts @@ -7,7 +7,7 @@ export interface IResourceValue { modes: SupportedMode[] /** * Value will accept alphanumerics, white spaces, file path, expressions, conditions, - * @pattern ^[\w \r\n\\\/@:,.!?+*^<>=()"'-]+$ + * @pattern ^[\w \r\n\\\/@:,.!?+*^<>=()"'-]*$ * @format floip-expression */ value: string