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

Add method to retrieve the DataTypeRegister during model binding. #413

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

LoneBoco
Copy link
Contributor

@LoneBoco LoneBoco commented Feb 12, 2023

Without access to the DataTypeRegister, binding custom DataVariable types with RegisterCustomDataVariableDefinition has severe limitations, as described in #412. This fixes that by letting you get the type register from the DataModelConstructor.

Fixes #412.

@mikke89
Copy link
Owner

mikke89 commented Feb 13, 2023

This is a very compelling use case. Originally, I was hoping to avoid exposing the data type registry by my reasoning here. But two compelling requests at the same time and I'm all ears :) Thanks for the PR!

@mikke89 mikke89 merged commit 1768805 into mikke89:master Feb 13, 2023
@LoneBoco LoneBoco deleted the feature/data-type-register branch February 13, 2023 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Data binding - RegisterCustomDataVariableDefinition impossible to use effectively
2 participants