Page MenuHomeSoftware Heritage

?fields=X restriction in Web API doesn't work as documented
Closed, MigratedEdits Locked

Description

The ?fields=X selector in the Web API seems to work properly only in simple cases, where the selected field contains a singleton datatype, but it breaks down when it contains more complex data. Some examples:

Note: ?fields is currently well-defined only for endpoints that return a single dictionary; making it work for endpoints that return multiple values (e.g., a list of dicts) is a different problem, independent from this one.