From 5bc54ca425866c37f6cdf6448d8ae2dcbabea3bf Mon Sep 17 00:00:00 2001 From: Felipe Artur Date: Thu, 16 Aug 2018 15:53:33 -0300 Subject: Use a serializer to render diff lines --- spec/fixtures/api/schemas/entities/diff_line.json | 14 ++++++++++++++ spec/fixtures/api/schemas/entities/diff_line_parallel.json | 11 +++++++++++ 2 files changed, 25 insertions(+) create mode 100644 spec/fixtures/api/schemas/entities/diff_line.json create mode 100644 spec/fixtures/api/schemas/entities/diff_line_parallel.json (limited to 'spec/fixtures') diff --git a/spec/fixtures/api/schemas/entities/diff_line.json b/spec/fixtures/api/schemas/entities/diff_line.json new file mode 100644 index 00000000000..66e8b443e1b --- /dev/null +++ b/spec/fixtures/api/schemas/entities/diff_line.json @@ -0,0 +1,14 @@ +{ + "type": "object", + "required": ["type"], + "properties": { + "line_code": { "type": ["string", "null"] }, + "type": { "type": ["string", "null"] }, + "old_line": { "type": ["integer", "null"] }, + "new_line": { "type": ["integer", "null"] }, + "text": { "type": ["string"] }, + "rich_text": { "type": ["string"] }, + "meta_data": { "type": ["object", "null"] } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/entities/diff_line_parallel.json b/spec/fixtures/api/schemas/entities/diff_line_parallel.json new file mode 100644 index 00000000000..f924eb0c601 --- /dev/null +++ b/spec/fixtures/api/schemas/entities/diff_line_parallel.json @@ -0,0 +1,11 @@ +{ + "required" : [ + "left", + "right" + ], + "properties" : { + "left": { "$ref": "diff_line.json" }, + "right": { "$ref": "diff_line.json" } + }, + "additionalProperties": false +} -- cgit v1.2.1