From 800a5f8ee9a73476a75ff04af2180e294db3a32d Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Mon, 2 Oct 2017 22:53:14 +0200 Subject: Add serializer matchers --- .../api/schemas/registry/repositories.json | 6 +++++ spec/fixtures/api/schemas/registry/repository.json | 27 +++++++++++++++++++++ spec/fixtures/api/schemas/registry/tag.json | 28 ++++++++++++++++++++++ spec/fixtures/api/schemas/registry/tags.json | 6 +++++ 4 files changed, 67 insertions(+) create mode 100644 spec/fixtures/api/schemas/registry/repositories.json create mode 100644 spec/fixtures/api/schemas/registry/repository.json create mode 100644 spec/fixtures/api/schemas/registry/tag.json create mode 100644 spec/fixtures/api/schemas/registry/tags.json (limited to 'spec/fixtures') diff --git a/spec/fixtures/api/schemas/registry/repositories.json b/spec/fixtures/api/schemas/registry/repositories.json new file mode 100644 index 00000000000..4978bd89cda --- /dev/null +++ b/spec/fixtures/api/schemas/registry/repositories.json @@ -0,0 +1,6 @@ +{ + "type": "array", + "items": { + "$ref": "repository.json" + } +} diff --git a/spec/fixtures/api/schemas/registry/repository.json b/spec/fixtures/api/schemas/registry/repository.json new file mode 100644 index 00000000000..4175642eb00 --- /dev/null +++ b/spec/fixtures/api/schemas/registry/repository.json @@ -0,0 +1,27 @@ +{ + "type": "object", + "required" : [ + "id", + "path", + "location", + "tags_path" + ], + "properties" : { + "id": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "location": { + "type": "string" + }, + "tags_path": { + "type": "string" + }, + "destroy_path": { + "type": "string" + } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/registry/tag.json b/spec/fixtures/api/schemas/registry/tag.json new file mode 100644 index 00000000000..5bc307e0e64 --- /dev/null +++ b/spec/fixtures/api/schemas/registry/tag.json @@ -0,0 +1,28 @@ +{ + "type": "object", + "required" : [ + "name", + "location" + ], + "properties" : { + "name": { + "type": "string" + }, + "location": { + "type": "string" + }, + "revision": { + "type": "string" + }, + "total_size": { + "type": "integer" + }, + "created_at": { + "type": "date" + }, + "destroy_path": { + "type": "string" + } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/registry/tags.json b/spec/fixtures/api/schemas/registry/tags.json new file mode 100644 index 00000000000..c72f957459a --- /dev/null +++ b/spec/fixtures/api/schemas/registry/tags.json @@ -0,0 +1,6 @@ +{ + "type": "array", + "items": { + "$ref": "tag.json" + } +} -- cgit v1.2.1