BioImage-Archive / bia-integrator

Apache License 2.0
2 stars 3 forks source link

Propagate API models not having type unions #53

Open liviuba opened 1 year ago

liviuba commented 1 year ago

Previous core models had Union(str, List[str]) (e.g. for image representation uris), which were changed in the api to just List[str] to simplify use/avoid ifs. Update downstream code to reflect the change.

liviuba commented 11 months ago

In some cases (e.g. queries, programmatically interacting with multiple things with no extra knowledge of what the type is), easier to know how to interact with something if it has a single non-null type.

When populating (especially) an object, useful to allow type options at different granularities.