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

Code generation for Open Targets data schema #29

Open
kpto opened this issue Dec 2, 2024 · 0 comments
Open

Code generation for Open Targets data schema #29

kpto opened this issue Dec 2, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@kpto
Copy link
Collaborator

kpto commented Dec 2, 2024

Currently the data schema is hand and hard coded as Python enum. I suggest we introduce code generation for this task which will bring us the following advantages:

  1. Easy and quick to support new data version
  2. A full data schema of a specific version
  3. Prevent human error on data schema
  4. Extra code safety on adapter as incorrect schema reference could be caught by code analysis (e.g. referencing outdated fields no longer exist in the new version of data)

An experimental branch will be created. An initial evaluation is being carried out and if it turns out not difficult to implement and everyone is happy with it, this could go into 0.4.0 as well.

@kpto kpto added the enhancement New feature or request label Dec 2, 2024
@kpto kpto self-assigned this Dec 2, 2024
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
None yet
Development

No branches or pull requests

1 participant