xiaohutai / jsonapi

[Bolt Extension] JSON API for Bolt CMS
https://market.bolt.cm/view/bolt/jsonapi
MIT License
55 stars 18 forks source link

Field of type imagelist seems to contain taxonomy #10

Closed madc closed 7 years ago

madc commented 8 years ago

This is my contenttype:

equipment:
    name: Things
    singular_name: Thing
    icon_many: fa:rocket
    icon_one: fa:rocket
    taxonomy: categories
    fields:
        name:
            type: text
            class: large
            group: content
        slug:
            type: slug
            uses: name
        description:
            type: markdown
            label: Beschreibung
        images:
            type: imagelist
            label: Bilder (*.jpg)
            extensions: [ jpg ]
            upload: equipment/images

Here is the JSON object, thats coming back:

attributes: {
    description: "My description",
    images: [
        {
            "/categories/haushalt": "Haushalt",
            "/categories/werkzeuge": "Werkzeuge"
        }
    ],
    name: "Hammer",
    slug: "hammer",
    taxonomy: {
        categories: {
            "/categories/haushalt": "Haushalt",
            "/categories/werkzeuge": "Werkzeuge"
        }

    }
},
id: 1,
links: {..},
type: "equipment"
Raistlfiren commented 7 years ago

Closing, because I believe this issue has been resolved in latest version. Please reopen if needed.