Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

feat(GraphQLArgument): introduce optional arguments #57

Merged
merged 4 commits into from
Nov 2, 2018

Conversation

mkalen
Copy link
Contributor

@mkalen mkalen commented Nov 1, 2018

Extend GraphQLArgument annotation class with field "optional" (default to false for backward compatibility)

Proposal for handling of API with mutually exclusive arguments using annotations. See test cases in GraphQLRequestEntityTest.

Closes #56

Extend GraphQLArgument annotation class with field "optional" (default to false for backward compatibility)
Clean "null" stings in valueOf handling of argument values, treat as null reference
Handle optional values in Property query message generation
Remove redundant "null"-string checks now covered in value parsing
Increase test coverage above jacoco threshold (88->100%)
@coveralls
Copy link

Pull Request Test Coverage Report for Build 81

  • 37 of 38 (97.37%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 98.812%

Changes Missing Coverage Covered Lines Changed/Added Lines %
nodes/src/main/java/io/aexp/nodes/graphql/Parameter.java 8 9 88.89%
Totals Coverage Status
Change from base Build 78: 0.3%
Covered Lines: 499
Relevant Lines: 505

💛 - Coveralls

@coveralls
Copy link

coveralls commented Nov 1, 2018

Pull Request Test Coverage Report for Build 82

  • 38 of 38 (100.0%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.5%) to 99.01%

Totals Coverage Status
Change from base Build 78: 0.5%
Covered Lines: 500
Relevant Lines: 505

💛 - Coveralls

@chemdrew chemdrew merged commit 1e82647 into americanexpress:master Nov 2, 2018
@mkalen mkalen deleted the feature/optional-arguments branch November 3, 2018 00:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants