Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion specs/v3/v3-replay-callback.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ paths:
callback URL (from the original verification or partner default)
is used.
content:
application/json:
multipart/form-data:
schema:
$ref: '#/components/schemas/ReplayCallbackRequest'
example:
Comment on lines 61 to 65

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: Switching this simple structured body to multipart/form-data breaks existing JSON clients and loses type fidelity (multipart parts are transmitted as strings, so schema validation/coercion of callback_url becomes ambiguous). Since no binary/file upload is involved, keep application/json — or at minimum declare both media types so current integrations continue to work. [possible issue, importance: 6]

New proposed code:
 content:
+  application/json:
+    schema:
+      $ref: '#/components/schemas/ReplayCallbackRequest'
+    example:
+      callback_url: 'https://partner.example.com/webhook'
   multipart/form-data:
     schema:
       $ref: '#/components/schemas/ReplayCallbackRequest'
     example:
       callback_url: 'https://partner.example.com/webhook'

Expand Down
Loading