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

Develop: Default mapping strategy #13

Closed
3 tasks done
N1cky94 opened this issue Dec 19, 2023 · 0 comments · Fixed by #14
Closed
3 tasks done

Develop: Default mapping strategy #13

N1cky94 opened this issue Dec 19, 2023 · 0 comments · Fixed by #14
Labels
enhancement New feature or request

Comments

@N1cky94
Copy link
Owner

N1cky94 commented Dec 19, 2023

Develop: Default Mapping Strategy

Functionality Short description

A user should be able to choose the DEFAULT mapping strategy.

General Info

Configuration:

  • Mapping Strategy: DEFAULT

Behaviour

Current Behaviour

Primitives automatically cast into their default value and reference values default to null.

Requested behaviour

When the default mapping strategy is implemented, the following rules should apply:

  • A field in the source should map to a compatible field at the destination
  • A field in the source that has no compatible field at the destination should not be mapped
  • A field at the destination that has no compatible field at the source, should rely on the default value of that type

Unhappy Path

  • If there is no default value, an exception should be thrown

Acceptance Criteria

  • Test for the setting of the strategy
  • Test the happy path rules for all current mapping usecases
  • Implement the Default strategy
@N1cky94 N1cky94 added the enhancement New feature or request label Dec 19, 2023
@N1cky94 N1cky94 moved this to Backlog in DomainMapper Dec 19, 2023
@N1cky94 N1cky94 moved this from Backlog to Ready For Development in DomainMapper Dec 19, 2023
@N1cky94 N1cky94 moved this from Ready For Development to In Development in DomainMapper Dec 19, 2023
@N1cky94 N1cky94 linked a pull request Dec 19, 2023 that will close this issue
6 tasks
N1cky94 added a commit that referenced this issue Dec 19, 2023
…-Strategy

Feature/issue #13 default mapping strategy
@github-project-automation github-project-automation bot moved this from In Development to Feature in DomainMapper Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Feature
Development

Successfully merging a pull request may close this issue.

1 participant