-
Notifications
You must be signed in to change notification settings - Fork 3
feat: adding idempotency to transfers #138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -7,6 +7,16 @@ post: | |||||||||||||||||||||||||||||||||||||||
| - Same-Currency Transfers | ||||||||||||||||||||||||||||||||||||||||
| security: | ||||||||||||||||||||||||||||||||||||||||
| - BasicAuth: [] | ||||||||||||||||||||||||||||||||||||||||
| parameters: | ||||||||||||||||||||||||||||||||||||||||
| - name: Idempotency-Key | ||||||||||||||||||||||||||||||||||||||||
| in: header | ||||||||||||||||||||||||||||||||||||||||
| required: false | ||||||||||||||||||||||||||||||||||||||||
| description: > | ||||||||||||||||||||||||||||||||||||||||
| A unique identifier for the request. If the same key is sent multiple times, | ||||||||||||||||||||||||||||||||||||||||
| the server will return the same response as the first request. | ||||||||||||||||||||||||||||||||||||||||
| schema: | ||||||||||||||||||||||||||||||||||||||||
| type: string | ||||||||||||||||||||||||||||||||||||||||
| example: 550e8400-e29b-41d4-a716-446655440000 | ||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+11
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing format constraint and maxLength. Consider adding validation to prevent abuse.
Suggested change
Prompt To Fix With AIThis is a comment left during a code review.
Path: openapi/paths/transfers/transfer_out.yaml
Line: 11:19
Comment:
Missing format constraint and maxLength. Consider adding validation to prevent abuse.
```suggestion
parameters:
- name: Idempotency-Key
in: header
required: false
description: >
A unique identifier for the request. If the same key is sent multiple times,
the server will return the same response as the first request.
schema:
type: string
maxLength: 255
```
How can I resolve this? If you propose a fix, please make it concise. |
||||||||||||||||||||||||||||||||||||||||
| requestBody: | ||||||||||||||||||||||||||||||||||||||||
| required: true | ||||||||||||||||||||||||||||||||||||||||
| content: | ||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing format constraint and maxLength. Consider adding validation to prevent abuse.
Prompt To Fix With AI