You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my example, by default the rel is pystac.RelType.ROOT and when I call the to_dict function on a Collection object, the link included in the dictionary returned is the following: 'links': [{'rel': <RelType.ROOT: 'root'>, 'href': '/home/paul/code/linz/topo-processor/collection.json', 'type': <MediaType.JSON: 'application/json'>}]
I would expect that to_dict return the str enum value "root" in my case.
Note that causes an Unsupported type: 'RelType' error when calling a jsonschema-rs validator with this dict.
The text was updated successfully, but these errors were encountered:
The
to_dict
function inlink.py
is not serializingrel
properly in case of using aRelType
enum.(
rel
is anUnion[str, RelType]
)pystac/pystac/link.py
Line 314 in 0ca2972
In my example, by default the
rel
ispystac.RelType.ROOT
and when I call theto_dict
function on aCollection
object, thelink
included in thedictionary
returned is the following:'links': [{'rel': <RelType.ROOT: 'root'>, 'href': '/home/paul/code/linz/topo-processor/collection.json', 'type': <MediaType.JSON: 'application/json'>}]
I would expect that
to_dict
return thestr
enum value"root"
in my case.Note that causes an
Unsupported type: 'RelType'
error when calling ajsonschema-rs
validator with this dict.The text was updated successfully, but these errors were encountered: