Syntax for showing an object in an array in a Type's Example?


I have created a type which contains an array of objects. The object’s properties is defined within the same Type file as the object will not be used elsewhere. In the example I’m having difficult representing the object:

    ID: 4432
    name: John
    albums: [
         albumID: 00450665
         albumName: test

API Designer doesn’t seem to like it and I can’t find any documentation on how to represent the object within the array in an example.
Any help would be appreciated.


Did you try the YAML syntax equivalent? something like:

  - albumID: 00450665
    albumName: test


Thanks Christian that did exactly what I needed :grinning:


Happy to be of service :wink: