Closed lgalke closed 6 years ago
This behavior is intended and should be the same for the internal suggestions too (in order to be able to show also the meta data of the parent resource to the user). I updated the specifications and the internal suggestions accordingly. Let me know if there is a problem. https://github.com/locdb/loc-db/commit/f218904b88f497be31b20b96d4557b43ad0e029c
Thanks!
Re-open because we still need to do two things in the front-end:
locdb.service.ts
Can we assume that there are always two entries in the sublist?
Like [ [parent1, child1], [parent1,child2] , [parent3, child3] ]
or how does it work exactly?
What happens if some resource does not have a parent? Do you put null as parent or as child?
Would be helpful to know @anlausch
Just for the record: It is either [parent, child] or [child]... We convert for more consistent front-end use to [parent, child] | [null, child].
External suggestions does not return the type advertised on Swagger:
Instead, we receive:
So we get a list of lists of suggestions instead of a list of suggestions. For the internal suggestions we get a plain list as advertised on Swagger.
Is this behaviour intended? If yes, please update Swagger specifications @anlausch
Thanks in advance, hope we bother you not too much.