article_json schema

78 views
Skip to first unread message

Giuseppe Bonelli

unread,
Jun 7, 2018, 1:21:23 PM6/7/18
to doaj-public-api
Hi,
we are trying to use the api to submit article metadata but we get a json schema error.

Where is the json schema documented?

The error seems in the link object (taken from the example record we got using a get article endpoint):

"link": [
{
"content_type": {},
"type": {},
"url": "http://foo.bar/123/"
}

as we get this error

{ "status": "bad_request", "error": "Schema exception at 'bibjson.link[0].type', Cast with <function sn at 0x7f1a6008e0c8> failed on '{}' of type <type 'dict'> (ref: c61e77de-6a75-11e8-8ed9-04014a62b401)" }

what are the format expected for type and content_type dictionaries?
Is there somewhere a complete article_json example?

Thanks


Dominic Mitchell

unread,
Oct 30, 2018, 6:43:37 AM10/30/18
to doaj-public-api
Hi Giuseppe,

I don't know if this is still a question for you but please see here: https://doaj.org/faq#contenttype

Thanks Dom
Reply all
Reply to author
Forward
0 new messages