-
Notifications
You must be signed in to change notification settings - Fork 7
Expose transaction receipt fields #507
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 |
|---|---|---|
| @@ -1,10 +1,14 @@ | ||
| type: object | ||
| required: | ||
| - reference | ||
| properties: | ||
| reference: | ||
| type: string | ||
| description: >- | ||
| Unique reference code that must be included with the payment to match it | ||
| with the correct incoming transaction | ||
| example: UMA-Q12345-REF | ||
| transactionHash: | ||
| type: string | ||
| description: >- | ||
| Transaction hash for the crypto transfer that delivered funds to the | ||
| transaction destination, when available. | ||
| example: "0x9f2c6b6f4b6c8f2a8d9e0b1c2d3e4f5061728394a5b6c7d8e9f00112233445566" | ||
|
Comment on lines
1
to
+14
Contributor
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.
With both Prompt To Fix With AIThis is a comment left during a code review.
Path: openapi/components/schemas/common/ReconciliationInstructions.yaml
Line: 1-13
Comment:
**Schema now accepts a fully-empty `ReconciliationInstructions` object**
With both `reference` and `transactionHash` optional, the object `{}` is valid per the schema. The PR description states the intent is to allow a transaction hash *when no payment reference exists*, implying at least one field should always be present. A `minProperties: 1` constraint (or an `anyOf` / `oneOf` requiring at least one of the two fields) would close the gap and prevent a semantically meaningless empty object from passing validation.
How can I resolve this? If you propose a fix, please make it concise. |
||
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.
referenceoptionalThe
referencefield description still reads "must be included with the payment", but therequiredconstraint was just removed. Any API consumer reading this description will think the field is mandatory when the schema now treats it as optional — the two are in direct conflict.Prompt To Fix With AI