Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-5676

JSON relationships output doesn't include target-type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2016-01-25
    • Component/s: Web service
    • Labels:
      None

      Description

      Compare https://musicbrainz.org/ws/2/release-group/2d340d43-a128-42c9-8bba-c92f26fc41be?inc=artist-rels+url-rels and https://musicbrainz.org/ws/2/release-group/2d340d43-a128-42c9-8bba-c92f26fc41be?fmt=json&inc=artist-rels+url-rels

      It seems the only way to figure out what entity a relationship is a link to is to loop over a list of entities looking for relations[0]["artist"], relations[0]["release-group"], ..., relations[0]["url"] until you find something. The XML WS on the other hand says target-type="artist" and target-type="url".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bitmap Michael Wiencek
                Reporter:
                nikki nikki
              • Votes:
                2 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  2016-01-25