This is an automated email from the ASF dual-hosted git repository.

marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git


The following commit(s) were added to refs/heads/main by this push:
     new b7fedf1  fix: Error to increase numeric value Input Numbers (#603)
b7fedf1 is described below

commit b7fedf197694cdf944ffb769cb74a5da43d8d058
Author: devcarneiro <122487170+devcarne...@users.noreply.github.com>
AuthorDate: Wed Jan 11 19:48:53 2023 -0300

    fix: Error to increase numeric value Input Numbers (#603)
    
    Error on increase numeric value on a Input Number of Camel Components. 
Example: DropBox component, field: (Expire In *)
---
 karavan-core/src/core/api/CamelUtil.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/karavan-core/src/core/api/CamelUtil.ts 
b/karavan-core/src/core/api/CamelUtil.ts
index d827f94..dca8936 100644
--- a/karavan-core/src/core/api/CamelUtil.ts
+++ b/karavan-core/src/core/api/CamelUtil.ts
@@ -213,7 +213,7 @@ export class CamelUtil {
             if (!isKamelet){
                 this.getComponentProperties(element).filter(p => 
p.required).forEach(p => {
                     const value = 
CamelDefinitionApiExt.getParametersValue(element, p.name, p.kind === 'path');
-                   if (value === undefined || value.trim().length === 0){
+                   if (value === undefined || (p.type === 'string' && 
value.trim().length === 0)){
                        result[0] = false;
                        result[1].push(p.displayName + " is required");
                    }

Reply via email to