Skip to content
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

ledger_entry RPC: insert required clause on object inputs #10

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

ckeshava
Copy link
Collaborator

add required clause on all object inputs in ledger_entry RPC. This handles the conditionally required parameters in the input.

This PR addresses the concerns raises in this comment.

By mandating certain properties as required in the YAML specification, we can conditionally enforce their presence in inputs. Ex: If a user chooses to specify AMM entry as an object, both asset and asset2 are required. Alternatively, if the AMMID is specified as a string type, then these fields are not mandatory.

Such validation checks can be now enforced.

…ndles the conditionally required parameters in the input
@ckeshava ckeshava requested a review from pdp2121 September 17, 2024 20:07
@pdp2121 pdp2121 merged commit b65138a into ripple:main Sep 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants