-
Notifications
You must be signed in to change notification settings - Fork 27
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
feat!: update vrs 2.0-alpha models #257
Conversation
* Made use of the classes in core-source/vrs-source so we don't repeat code * Tried to reorganize some models * Update tests since digests changed
@@ -329,8 +498,7 @@ class SequenceLocation(BaseModel): | |||
description='The end coordinate or range of the SequenceLocation. The minimum value of this coordinate or range is 0. MUST represent a coordinate or range greater than the value of `start`.', | |||
) | |||
|
|||
class ga4gh: | |||
identifiable = True | |||
class ga4gh(_Ga4ghIdentifiableObject.ga4gh): |
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.
Originally I put these properties in a nested class in order for them to not be seen as related to the top level pydantic properties but still be declared on and accessible on the class. This change seems fine to share some of the structure of the .ga4gh
nested classes, but if we can think of a cleaner way that'd also be nice.
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.
Hmmmm @toneillbroad do you have any suggestions? If not, we can make a separate issue for this and come back to it
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.
The structures as represented in this PR are good by me.
Notes:
SequenceReference