diff options
author | Rémy Coutable <remy@rymai.me> | 2017-07-26 15:53:07 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-08-08 11:50:58 +0200 |
commit | 10fe62ec80be86c227e38d60e30fecba0c5bbe29 (patch) | |
tree | 6427cca9ef5c5bb33bb82885575db0a1842d9892 /spec/fixtures | |
parent | 0ec87b3bf0ac27af5f5fedf97d51c8b14b050f50 (diff) | |
download | gitlab-ce-10fe62ec80be86c227e38d60e30fecba0c5bbe29.tar.gz |
Fix the /projects/:id/repository/tags endpoint to handle dots in the tag name when the project full path contains a `/`
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/fixtures')
-rw-r--r-- | spec/fixtures/api/schemas/public_api/v4/release.json | 12 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/public_api/v4/tag.json | 21 | ||||
-rw-r--r-- | spec/fixtures/api/schemas/public_api/v4/tags.json | 4 |
3 files changed, 37 insertions, 0 deletions
diff --git a/spec/fixtures/api/schemas/public_api/v4/release.json b/spec/fixtures/api/schemas/public_api/v4/release.json new file mode 100644 index 00000000000..6612c2a9911 --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/release.json @@ -0,0 +1,12 @@ +{ + "type": "object", + "required" : [ + "tag_name", + "description" + ], + "properties" : { + "tag_name": { "type": ["string", "null"] }, + "description": { "type": "string" } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/public_api/v4/tag.json b/spec/fixtures/api/schemas/public_api/v4/tag.json new file mode 100644 index 00000000000..52cfe86aeeb --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/tag.json @@ -0,0 +1,21 @@ +{ + "type": "object", + "required" : [ + "name", + "message", + "commit", + "release" + ], + "properties" : { + "name": { "type": "string" }, + "message": { "type": ["string", "null"] }, + "commit": { "$ref": "commit/basic.json" }, + "release": { + "oneOf": [ + { "type": "null" }, + { "$ref": "release.json" } + ] + } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/public_api/v4/tags.json b/spec/fixtures/api/schemas/public_api/v4/tags.json new file mode 100644 index 00000000000..eae352e7f87 --- /dev/null +++ b/spec/fixtures/api/schemas/public_api/v4/tags.json @@ -0,0 +1,4 @@ +{ + "type": "array", + "items": { "$ref": "tag.json" } +} |