-
Notifications
You must be signed in to change notification settings - Fork 6
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
Update unit tests to match latest serialization model for VRS 2.0.0a5 #85
Comments
@ahwagner @korikuzma @jsstevenson
And I am seeing discrepant behavior. That is, in vrs-python, this test would fail:
|
@ehclark I don't think we have any tests for haplotypes. It appears that anyvar currently only supports Alleles / Copy Number. Maybe we should document this in a separate issue? |
@ehclark Would we just need to add a |
@korikuzma I am not familiar enough with the semantics of the underlying model to know what the correct solution is. While ga4gh/vrs-python#335 only mentions haplotypes, there are several |
Hi @ehclark; yes, the enref/deref work was not addressed per ga4gh/vrs-python#342 (comment) and still needs to be handled. I will take a look at this today. |
@ehclark see ga4gh/vrs-python#357 for PR to address unit tests in VRS-Python. Enref / deref behavior, as it turns out, is unaffected; however I needed to dig into the enderef code to understand the refatt map and verify it was behaving as before (it is). Not sure if that addresses this issue in its entirety; if there are unit tests that need to be updated in AnyVar I have not looked at that test suite. |
@jsstevenson @korikuzma Previously (according to the unit test expectations) it would work like this:
Now the behavior is as follows:
If the goal is to have the |
I am not up to speed on whether any rules have changed re serialization in VRS 2 (I know there have been a lot of code changes), but -- and maybe this is just my ignorance -- it seems bad that |
@jsstevenson This may be due to the related issue here |
@korikuzma Yes that issue you referred to is the same as the one in AnyVar. I have only found two solutions:
But in both cases as you note, the OpenAPI docs do not generate the full response model. Perhaps we can follow your lead in the other project: remove the response model for now and separate the OpenAPI doc into a separate ticket? |
@ehclark That works for me! |
The serialization model for VRS 2.0 has been updated in the 2.0.0a5 release. Unit tests need to be updated to account for the changes.
The text was updated successfully, but these errors were encountered: