Open
Description
In STAC 1.1, we are probably going to explicitly state that assets "inherit" attributes from items. E.g., for this (shortened) item:
{
"properties": {"foo": "bar"},
"assets": {"data": {"href": "example.tif"}}
}
pystac should behave like this:
assert item.assets["data"].foo == "bar"
This might require some strange __getattr__
magic, which might be really hard to do while preserving typing.
Related issues
- Came out of discussions on RFC: A common construct to replace `raster:bands` and `eo:bands` radiantearth/stac-spec#1213