Open
Description
The Link
class has a type
attribute that can either be one of the media types defined by the MimeTypes
enum or None
stac-pydantic/stac_pydantic/links.py
Lines 11 to 19 in 68d20aa
However, the MimeTypes
enum is missing several common types such as text/xml
.
The STAC spec actually does not restrict media types for links to a specific set. It does mention that for asset links that "registered media types are preferred" but the set of registered media types is much much bigger than the MimeTypes
enum.
I would suggest changing the Link.type
attribute to be simply Optional[str]
to conform with the STAC spec.
Metadata
Metadata
Assignees
Labels
No labels