Skip to content

Simplify tables in captions#130

Merged
thewilkybarkid merged 1 commit into
elifesciences:developfrom
thewilkybarkid:simplify-table-in-caption
Feb 1, 2017
Merged

Simplify tables in captions#130
thewilkybarkid merged 1 commit into
elifesciences:developfrom
thewilkybarkid:simplify-table-in-caption

Conversation

@thewilkybarkid

Copy link
Copy Markdown
Contributor

We're currently stuck on a version of the PHP JSON Schema library that gets stuck in an infinite loop (causing elifesciences/api-sdk-php#98 and elifesciences/api-sdk-php#99 to fail). Newer versions of the library handle it correctly, but while we wait for webmozart/json#27 to be merged this simplifies the schema.

Use of additionalProperties is problematic, so we haven't been using it, but for this case it's probably ok (especially temporarily, and hopefully can be reverted before 1.0 is locked).

@thewilkybarkid thewilkybarkid merged commit b5a3248 into elifesciences:develop Feb 1, 2017
@thewilkybarkid thewilkybarkid deleted the simplify-table-in-caption branch February 1, 2017 09:33
@gnott

gnott commented Feb 2, 2017

Copy link
Copy Markdown
Member

I've tried this as a test and it fails on elife-05375-v2.xml, the article with a table in the caption. I think it is because the table has an id attribute, and this schema does not allow anything but "type" and "tables". Is is possible to also allow "id"? Or, should I remove the id when parsing it? It seems strange for a caption table to have an id, but maybe it is important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants