archivesspace-labs / ArchivesSnake

A client library for working with the ArchivesSpace API
https://archivesspace-labs.github.io/ArchivesSnake/
Other
78 stars 13 forks source link

Fetching URI from ref should be special-cased to not reify #7

Closed pobocks closed 6 years ago

pobocks commented 6 years ago

Since refs contain (and literally only contain) the URI, uri on jsonmodel objects that are refs should be special-cased to not reify and instead return __json['ref']

Relevant code to reference right now for this issue is https://github.com/archivesspace-labs/ArchivesSnake/blob/abstraction_layer/asnake/jsonmodel/__init__.py#L18

pobocks commented 6 years ago

Fixed by 9074d50.