properties -> extra_fields for Asset and Link#510
Conversation
Codecov Report
@@ Coverage Diff @@
## main #510 +/- ##
=======================================
Coverage 93.96% 93.97%
=======================================
Files 71 71
Lines 9991 10000 +9
Branches 1061 1059 -2
=======================================
+ Hits 9388 9397 +9
Misses 434 434
Partials 169 169
Continue to review full report at Codecov.
|
gadomski
left a comment
There was a problem hiding this comment.
LGTM. The only thing that was initially surprising was the properties attribute on all extensions, but it made sense after reading for a bit (they aren't extra fields, they really are the extension's data).
Yeah, I thought that was too much to take on in this PR, but I agree that is confusing terminology as well. It also interferes with the naming convention in the Label Extension, since that defines a |
Related Issue(s):
Description:
Adds type annotations for
LinkandAssetattributes and uses these in API documentation. Changespropertiestoextra_fieldsforLinkandAssetclasses to use more consistent naming across PySTAC classes.PR Checklist:
pre-commit run --all-files)scripts/test)