adobe / commerce-integration-starter-kit

Adobe's integration starter kit uses Adobe Developer App Builder to improve real-time connection reliability and reduce the time-to-market for integrations between Adobe Commerce and other back-office systems, such as ERPs, CRMs, and PIMs.
Apache License 2.0
9 stars 2 forks source link

INTERNAL - make `sales_order_save_commit_after` sample event compliant with validation schema #19

Closed rojoangel closed 2 months ago

rojoangel commented 2 months ago

Description

Make sales_order_save_commit_after sample event compliant with its JSON schema. Currently, it yields a validation error caused by not matching the JSON validation defined in the runtime action code. image

Related Issue

N/A

Motivation and Context

The sample event should be compliant with the JSON schema defined by the action that will process it, otherwise, if triggered from the Adobe Developer Console, it'll yield an HTTP/400 response related to invalid event format

How Has This Been Tested?

The fix has been tested in a fresh deployment of the starter kit.

Screenshots (if appropriate):

The new sample event as displayed on the Adobe Developer Console: image

The new sample event is processed by the corresponding registration. The processing still yields an HTTP/400 error, but now it is not related to the event validation. image

Types of changes

Checklist: