ORCID / python-orcid

Python wrapper around ORCID API
BSD 3-Clause "New" or "Revised" License
91 stars 26 forks source link

Minimal example from documentation raises error #14

Open Panos512 opened 8 years ago

Panos512 commented 8 years ago

The minimal-example from the documentation:

{
    'title': {'title': 'API Test Title'},
    'type': 'JOURNAL_ARTICLE',
    'external-ids': [{
        'external-id': [{
            'external-id-type': 'source-work-id',
            'external-id-value': '1234'
        }]
    }]
}

Which follows the RC2 schema, is currently failing with the following message:

'Can not deserialize instance of org.orcid.jaxb.model.record_rc2.ExternalIDs out of START_ARRAY token\n at [Source: org.apache.catalina.connector.CoyoteInputStream@10e721f8; line: 1, column: 2] (through reference chain: org.orcid.jaxb.model.record_rc2.Work["external-ids"])