diff options
author | Felipe Artur <felipefac@gmail.com> | 2018-08-16 15:53:33 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2018-08-31 15:32:48 -0300 |
commit | 5bc54ca425866c37f6cdf6448d8ae2dcbabea3bf (patch) | |
tree | df5971d723e3239fe86740d78873522f6667537a /spec/fixtures | |
parent | 472f2d566633df6c1dee1f703b06958b9a0a2cd8 (diff) | |
download | gitlab-ce-5bc54ca425866c37f6cdf6448d8ae2dcbabea3bf.tar.gz |
Use a serializer to render diff lines
Diffstat (limited to 'spec/fixtures')
-rw-r--r-- | spec/fixtures/api/schemas/entities/diff_line.json | 14 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/entities/diff_line_parallel.json | 11 |
2 files changed, 25 insertions, 0 deletions
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 +} |