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

fix(server): Remove optional params count check #41

Merged

Conversation

amricko0b
Copy link
Contributor

Checking actual params count towards expected optionals seems to be broken - handling request with optional param omitted fails.

Description

This PR relates to closes #39.

This PR aims to fix the situation about checking the amount of provided params towards expected optional inputs count.

Comments

Pre-submit checklist

  • Branch
    • Tests are provided (if possible)
    • No compilation warning is added (if possible)
    • No deprecated methods or objects are added
    • Commits have useful messages
  • PR
    • Self-reviewed the diff
    • Create a useful and clear PR description
  • Documentation
    • Update README.md file (if relevant)
    • Update documentation files in docs folder (if relevant)

Checking actual params count towards expected optionals seems to be broken - handling request with optional param omitted fails.
Copy link

@ghostbuster91 ghostbuster91 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@ghostbuster91 ghostbuster91 self-requested a review January 31, 2023 12:37
@ghostbuster91 ghostbuster91 merged commit 63fe3dc into input-output-hk:main Jan 31, 2023
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.

Omitting Optional params in request causes error
3 participants