Skip to content

Commit 242ec93

Browse files
Merge branch 'deactivate-ssl' into 'main'
Deactivate SSL verification when sending notifications See merge request disi/innovation/aristote/aristoteapi!94
2 parents d8743cd + fd7084e commit 242ec93

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Model/EnrichmentCreationRequestPayload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class EnrichmentCreationRequestPayload
1717
#[Groups(['Default'])]
1818
private ?string $notificationWebhookUrl = null;
1919

20-
#[OA\Property(property: 'notificationLevel', description: 'Choose to receive notifications only at the end of the enrichment or at each step of the process', type: 'string', required: false)]
20+
#[OA\Property(property: 'notificationLevel', description: 'Choose to receive notifications only at the end of the enrichment or at each step of the process', type: 'string', nullable: true)]
2121
#[Assert\Choice(callback: [Constants::class, 'getNotificationLevels'], multiple: false, message: 'Invalid notificationLevel value')]
2222
#[Groups(['Default'])]
2323
private ?string $notificationLevel = null;

src/Utils/EnrichmentUtils.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ public function sendNotification(Enrichment $enrichment, ?string $completedStep
171171
'headers' => [
172172
'Content-Type' => 'application/json',
173173
],
174+
'verify_peer' => false,
175+
'verify_host' => false,
174176
]);
175177
$enrichment->setNotificationStatus($response->getStatusCode());
176178
$latestAiVersion?->setNotificationStatus($response->getStatusCode());

0 commit comments

Comments
 (0)