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 inconsistencies in value implementations #22

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

RyanHealey
Copy link
Contributor

@RyanHealey RyanHealey commented Dec 28, 2022

There are several inconsistencies between the implementations of methods in DslParamsImpl and RepeatingArgValues

For example, when calling value() on a normal parameter that is a list, it will throw an exception. Whereas, in a repeating group it will give the first value. Additionally, within a repeating group, it does not through an error if the parameter does not exist.

Additionally, hasValue in DslParamsImpl did not throw if the param did not exist, instead it returned false, which is different to what is stated in the java doc in the API

@RyanHealey RyanHealey force-pushed the feature/simple-arg-repearting-arg-consistency branch 2 times, most recently from 865c86c to 27f04ef Compare January 13, 2023 13:55
@RyanHealey RyanHealey force-pushed the feature/simple-arg-repearting-arg-consistency branch from 058db57 to 200a45d Compare February 3, 2023 09:41
@RyanHealey RyanHealey force-pushed the feature/simple-arg-repearting-arg-consistency branch from 200a45d to 5937a8f Compare July 21, 2023 12:55
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.

None yet

1 participant