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
版权声明:本文标题:JSON Schema Output Object rather than Array 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745562806a2156264.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论