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

Added condition so the resolved value is only cast to string and pars… #917

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cenini
Copy link

@cenini cenini commented Sep 15, 2021

…ed to an enum if it is not directly assignable.

Describe the change
A clear and concise description of what the change is. Any PR submitted without a description of the change will not be reviewed.

Fixed a condition in the DefinitionLoader that made it so that inputs could not be assigned from enums that matched the type of the property to assign to.

Describe your implementation or design
How did you go about implementing the change?

Added a condition, similar to that in the else statement underneath to cover the case when the enum object is directly assignable to the stepProperty.

Tests
Did you cover your changes with tests?

No, the DefinitionLoader class is not really built in a testable way. Without modifying the accessibility levels of the methods in DefinitionLoader, I don't really feel comfortable writing new unit tests for the class. Besides, the class has terrible test coverage already.

Breaking change
Do you changes break compatibility with previous versions?

Would not think so.

Additional context
Any additional information you'd like to provide?

See issue #916 .

…ed to an enum if it is not directly assignable.
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

2 participants