-
Notifications
You must be signed in to change notification settings - Fork 3
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
Mark the job runtime plugin config as nullable #43
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's kind of unfortunate that it needs to be wrapped.
The alternative solution is to provide a custom merging function to |
Actually let me just try the custom merging function approach if it is really quick. |
This reverts commit 13762df.
After a second thought, I think the current approach is better, because deepmerge is performed both on the server side and in the local mode. If we introduce a custom merging logic, we need to ensure that the logic is consistent in both places. With the current approach, that's not a concern. |
Summary
job_runtime
asnullable
.null
plugin config with empty objects.runtime
into only array. However, if the config isnull
,deepmerge
will only keep the last value.null
field:This PR resolves #32.