From 4f624b06c481f1bb87a5a3f531c4d17df6174974 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 14 Mar 2026 14:08:21 +0300 Subject: [PATCH] 214 empty lists fixes --- v1/Application.cfc | 2 +- v1/lib/rest_api_helper.cfc | 14 ++++++----- v1/resources/available_resource_realms.cfc | 4 +-- v1/resources/instance_operation.cfc | 25 +++++++++++++------ v1/resources/instance_operation_cfs_param.cfc | 17 ++++++++++--- .../instance_operation_cfs_param_ls.cfc | 15 ++++++++--- v1/resources/instance_operation_default.cfc | 16 +++++++++--- v1/resources/svc_operation.cfc | 9 ++++++- 8 files changed, 73 insertions(+), 29 deletions(-) diff --git a/v1/Application.cfc b/v1/Application.cfc index 1e19067..d45c963 100644 --- a/v1/Application.cfc +++ b/v1/Application.cfc @@ -57,7 +57,7 @@ //variables.framework.docs={}; variables.framework.docs.APIName="svc-api"; - variables.framework.docs.APIVersion="0.213"; /*$ git config --global --unset user.password*/ + variables.framework.docs.APIVersion="0.214"; /*$ git config --global --unset user.password*/ variables.framework.globalHeaders = structNew(); variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location"; diff --git a/v1/lib/rest_api_helper.cfc b/v1/lib/rest_api_helper.cfc index a361205..517f713 100644 --- a/v1/lib/rest_api_helper.cfc +++ b/v1/lib/rest_api_helper.cfc @@ -18,7 +18,8 @@ - + + @@ -71,12 +72,13 @@ - - - - + + + + - + diff --git a/v1/resources/available_resource_realms.cfc b/v1/resources/available_resource_realms.cfc index 3c6c76b..2eb089c 100644 --- a/v1/resources/available_resource_realms.cfc +++ b/v1/resources/available_resource_realms.cfc @@ -76,15 +76,13 @@ - + - - diff --git a/v1/resources/instance_operation.cfc b/v1/resources/instance_operation.cfc index 085f788..9bae79d 100644 --- a/v1/resources/instance_operation.cfc +++ b/v1/resources/instance_operation.cfc @@ -141,9 +141,15 @@ sop.label sop.data_type null as data_descriptor - sop.value_list + ((isArray(x) OR isEmpty(x))? x : listToArray(x))#>sop.value_list sop.ref_svc_id + sop.func + sop.nested_ref + sop.state_path + sop.expression + sop.depends_on_cfs_params + sop.is_required sop.default_value sop.regex @@ -155,13 +161,12 @@ sop.descr sop.man sop.sort - iop.note - sop.nested_ref + iop.note sop.config::text as config null as nested_ref_data - sop.state_path - sop.depends_on_cfs_params - sop.expression + + + sop.is_sensitive from svc_operation_cfs_param sop @@ -219,7 +224,13 @@ } ) /> - + + + + + + diff --git a/v1/resources/instance_operation_cfs_param.cfc b/v1/resources/instance_operation_cfs_param.cfc index 50eba2e..51e829b 100644 --- a/v1/resources/instance_operation_cfs_param.cfc +++ b/v1/resources/instance_operation_cfs_param.cfc @@ -467,15 +467,19 @@ arguments.requestArguments.specificationId=usrCustomerInfo.specificationId; //In sop.svc_operation_cfs_param sop.data_type null as data_descriptor - sop.value_list + ((isArray(x) OR isEmpty(x))? x : listToArray(x))#>sop.value_list u.login as creator_login u.shortname as creator_shortname sop.is_sensitive sop.man + sop.func - sop.nested_ref - sop.config::text as config + sop.expression + sop.nested_ref sop.state_path + sop.depends_on_cfs_params + + sop.config::text as config e.service_id e.instance_uid::text as instance_uid @@ -522,7 +526,12 @@ arguments.requestArguments.specificationId=usrCustomerInfo.specificationId; //In - + + + + + diff --git a/v1/resources/instance_operation_cfs_param_ls.cfc b/v1/resources/instance_operation_cfs_param_ls.cfc index e0769be..fe7f7c5 100644 --- a/v1/resources/instance_operation_cfs_param_ls.cfc +++ b/v1/resources/instance_operation_cfs_param_ls.cfc @@ -88,11 +88,16 @@ arguments.requestArguments.specificationId=usrCustomerInfo.specificationId; //In sop.sort sop.is_sensitive sop.data_type - sop.value_list + ((isArray(x) OR isEmpty(x))? x : listToArray(x))#>sop.value_list sop.default_value - sop.func - sop.man + + sop.func + p.state_path + p.nested_ref + p.expression sop.depends_on_cfs_params + + sop.man null as data_descriptor e.service_id @@ -126,6 +131,10 @@ arguments.requestArguments.specificationId=usrCustomerInfo.specificationId; //In + + + diff --git a/v1/resources/instance_operation_default.cfc b/v1/resources/instance_operation_default.cfc index 0713419..791c629 100644 --- a/v1/resources/instance_operation_default.cfc +++ b/v1/resources/instance_operation_default.cfc @@ -74,8 +74,9 @@ p.svc_operation_cfs_param p.label p.data_type - null as data_descriptor - p.value_list + null as data_descriptor + + ((isArray(x) OR isEmpty(x))? x : listToArray(x))#> p.value_list >p.func p.ref_svc_id p.is_required @@ -149,8 +150,12 @@ argumentCollection=#args# returnVariable="local.qCfsParam.value_list" /> - + + + + @@ -209,7 +214,9 @@ - + + + @@ -233,6 +240,7 @@ + diff --git a/v1/resources/svc_operation.cfc b/v1/resources/svc_operation.cfc index f0cfa95..e5dec6b 100644 --- a/v1/resources/svc_operation.cfc +++ b/v1/resources/svc_operation.cfc @@ -36,12 +36,15 @@ p.svc_operation_cfs_param p.label p.data_type - p.value_list + ((isArray(x) OR isEmpty(x))? x : listToArray(x))#>p.value_list p.ref_svc_id p.is_required p.default_value p.default_compute p.func + p.expression + p.state_path + p.nested_ref p.regex p.unique_scope p.maxlength @@ -82,6 +85,10 @@ + + +