move validate from classmethod to instance method#147
Conversation
3ae24dd to
e2cebf6
Compare
|
@philvarner and or @gadomski -- think this is warrants a |
I think so. It breaks existing packages that rely on stac-task. |
|
Yup, 👍🏼 to marking as breaking. |
e2cebf6 to
8128b8f
Compare
gadomski
left a comment
There was a problem hiding this comment.
LGTM, and I linked this to the referenced issue to close.
pjhartzell
left a comment
There was a problem hiding this comment.
Approved, subject to one fixup and comment.
Comment is that I have some uneasiness around why this was a classmethod to begin with. Are we missing an intended purpose? Perhaps a use more along the lines of a staticmethod where you could fling payloads at the class for validation? That said, I think the change is logical, and we can modify based on user feedback.
Co-authored-by: Preston Hartzell <preston.hartzell@gmail.com>
Related Issue(s):
Proposed Changes:
self._payloadassignment up,self.validate(payload) -> self.validate(), with the latter inspecting theself._payloadmember.PR Checklist: