From d4f510e6f7bfd87a7fae8f15449056c9dfafbba9 Mon Sep 17 00:00:00 2001 From: Chris Wilkinson Date: Wed, 1 Feb 2017 09:28:22 +0000 Subject: [PATCH] Simplify tables in captions --- src/misc/asset.v1.yaml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/misc/asset.v1.yaml b/src/misc/asset.v1.yaml index 074feb2e..8b1d76f4 100644 --- a/src/misc/asset.v1.yaml +++ b/src/misc/asset.v1.yaml @@ -21,15 +21,19 @@ properties: oneOf: - $ref: ../blocks/mathml.v1.yaml - $ref: ../blocks/paragraph.v1.yaml - - allOf: - - $ref: ../blocks/table.v1.yaml - - properties: - title: - not: {} - sourceData: - not: {} - doi: - not: {} + - # Simplified table block + properties: + type: + type: string + enum: + - table + tables: + type: array + items: + title: HTML table + type: string + pattern: ^[\s\S]+
$ + additionalProperties: false minItems: 1 dependencies: caption: [title]