From 3d16785ead9e826cbacb078dd9860f08fced6bf3 Mon Sep 17 00:00:00 2001 From: yurdm Date: Thu, 27 Aug 2026 23:45:35 +0300 Subject: [PATCH 1/2] Add engine/type: code to Twig validator field and bump core requirement --- .../entityDefs/ExportHttpValidator.json | 10 +++- composer.json | 50 +++++++++---------- 2 files changed, 33 insertions(+), 27 deletions(-) diff --git a/app/Resources/metadata/entityDefs/ExportHttpValidator.json b/app/Resources/metadata/entityDefs/ExportHttpValidator.json index 8cd2f37..d439cd5 100755 --- a/app/Resources/metadata/entityDefs/ExportHttpValidator.json +++ b/app/Resources/metadata/entityDefs/ExportHttpValidator.json @@ -5,8 +5,14 @@ "required": true }, "validator": { - "type": "text", - "view": "views/fields/script", + "type": "code", + "engine": "Twig", + "variables": [ + "httpCode", + "responseText", + "responseHeaders", + "entities" + ], "default": "{#ResponseText: \"{{responseText}}\" httpCode: \"{{httpCode}}\"#}\n{% set success = true %}\n{{ success }}", "tooltip": true, "required": true diff --git a/composer.json b/composer.json index 91936cc..920ff84 100644 --- a/composer.json +++ b/composer.json @@ -1,25 +1,25 @@ -{ - "name": "atrocore/export-http", - "default": "", - "require": { - "atrocore/core": "~2.3.1", - "atrocore/export": "~1.11.0" - }, - "conflict": { - "atrocore/pim": "<1.8.3" - }, - "autoload": { - "psr-4": { - "ExportHttp\\": "app/" - } - }, - "extra": { - "atroId": "ExportHttp", - "name": { - "default": "Export: HTTP Request" - }, - "description": { - "default": "This module allows you to use a template engine to configure and export any structured data of any complexity manually or fully automatically via HTTP request. Any REST/SOAP API calls can be executed. You can use an export feed like a webhook too." - } - } -} +{ + "name": "atrocore/export-http", + "default": "", + "require": { + "atrocore/core": "~2.3.16", + "atrocore/export": "~1.11.0" + }, + "conflict": { + "atrocore/pim": "<1.8.3" + }, + "autoload": { + "psr-4": { + "ExportHttp\\": "app/" + } + }, + "extra": { + "atroId": "ExportHttp", + "name": { + "default": "Export: HTTP Request" + }, + "description": { + "default": "This module allows you to use a template engine to configure and export any structured data of any complexity manually or fully automatically via HTTP request. Any REST/SOAP API calls can be executed. You can use an export feed like a webhook too." + } + } +} From 1d4bb7ff5e0f0968ecce5fbab38d4fb00dcfa21f Mon Sep 17 00:00:00 2001 From: yurdm Date: Fri, 28 Aug 2026 10:53:57 +0300 Subject: [PATCH 2/2] Change crlf to lf in files --- composer.json | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/composer.json b/composer.json index 920ff84..ffb87f8 100644 --- a/composer.json +++ b/composer.json @@ -1,25 +1,25 @@ -{ - "name": "atrocore/export-http", - "default": "", - "require": { - "atrocore/core": "~2.3.16", - "atrocore/export": "~1.11.0" - }, - "conflict": { - "atrocore/pim": "<1.8.3" - }, - "autoload": { - "psr-4": { - "ExportHttp\\": "app/" - } - }, - "extra": { - "atroId": "ExportHttp", - "name": { - "default": "Export: HTTP Request" - }, - "description": { - "default": "This module allows you to use a template engine to configure and export any structured data of any complexity manually or fully automatically via HTTP request. Any REST/SOAP API calls can be executed. You can use an export feed like a webhook too." - } - } -} +{ + "name": "atrocore/export-http", + "default": "", + "require": { + "atrocore/core": "~2.3.16", + "atrocore/export": "~1.11.0" + }, + "conflict": { + "atrocore/pim": "<1.8.3" + }, + "autoload": { + "psr-4": { + "ExportHttp\\": "app/" + } + }, + "extra": { + "atroId": "ExportHttp", + "name": { + "default": "Export: HTTP Request" + }, + "description": { + "default": "This module allows you to use a template engine to configure and export any structured data of any complexity manually or fully automatically via HTTP request. Any REST/SOAP API calls can be executed. You can use an export feed like a webhook too." + } + } +}