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

JSON web service omits lists that are loaded but empty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Web service
    • None

      Properties that contain arrays may be omitted if they are empty, even if they are loaded. For example:

      • release-events is omitted if there are no release events, instead of returning "release-events": []
      • tracks is omitted if there are no tracks, instead of returning "tracks": []

      This is annoying because it requires handling null or undefined properties, or modeling such properties as being optional in a type system (when, for example, in 99% of cases tracks will be present).

            Unassigned Unassigned
            bitmap Michael Wiencek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Version Package