admin管理员组

文章数量:1023773

I've set up a custom post and added various custom fields using Advanced Custom Fields. The data can be viewed here: khclassics-co-uk.stackstaging/wp-json/wp/v2/classic_car

However, when I validate the schema, I get an error: Invalid type. Expected Object but got Array.

To validate I'm using the schema from here: carandclassic.co.uk/feed/schema.json

How I can output an Object rather than an Array? I've looked in various place but can't find an answer that works.

I've set up a custom post and added various custom fields using Advanced Custom Fields. The data can be viewed here: khclassics-co-uk.stackstaging/wp-json/wp/v2/classic_car

However, when I validate the schema, I get an error: Invalid type. Expected Object but got Array.

To validate I'm using the schema from here: carandclassic.co.uk/feed/schema.json

How I can output an Object rather than an Array? I've looked in various place but can't find an answer that works.

本文标签: JSON Schema Output Object rather than Array