diff options
Diffstat (limited to 'spec/fixtures/api/schemas')
11 files changed, 143 insertions, 2 deletions
diff --git a/spec/fixtures/api/schemas/entities/group_group_link.json b/spec/fixtures/api/schemas/entities/group_group_link.json index 4c9aae140d2..dda94dc3362 100644 --- a/spec/fixtures/api/schemas/entities/group_group_link.json +++ b/spec/fixtures/api/schemas/entities/group_group_link.json @@ -1,10 +1,12 @@ { "type": "object", - "required": ["id", "created_at", "expires_at", "access_level"], + "required": ["id", "created_at", "expires_at", "can_update", "can_remove", "access_level"], "properties": { "id": { "type": "integer" }, "created_at": { "type": "date-time" }, "expires_at": { "type": ["date-time", "null"] }, + "can_update": { "type": "boolean" }, + "can_remove": { "type": "boolean" }, "access_level": { "type": "object", "required": ["integer_value", "string_value"], diff --git a/spec/fixtures/api/schemas/entities/merge_request_basic.json b/spec/fixtures/api/schemas/entities/merge_request_basic.json index 3c19528d71b..b061176f6a7 100644 --- a/spec/fixtures/api/schemas/entities/merge_request_basic.json +++ b/spec/fixtures/api/schemas/entities/merge_request_basic.json @@ -1,6 +1,7 @@ { "type": "object", "properties" : { + "title": { "type": "string" }, "state": { "type": "string" }, "merge_status": { "type": "string" }, "source_branch_exists": { "type": "boolean" }, diff --git a/spec/fixtures/api/schemas/entities/test_case.json b/spec/fixtures/api/schemas/entities/test_case.json index 0dd3c5d472f..d731d7eed0a 100644 --- a/spec/fixtures/api/schemas/entities/test_case.json +++ b/spec/fixtures/api/schemas/entities/test_case.json @@ -8,6 +8,7 @@ "status": { "type": "string" }, "name": { "type": "string" }, "classname": { "type": "string" }, + "file": { "type": ["string", "null"] }, "execution_time": { "type": "float" }, "system_output": { "type": ["string", "null"] }, "stack_trace": { "type": ["string", "null"] }, diff --git a/spec/fixtures/api/schemas/entities/trigger.json b/spec/fixtures/api/schemas/entities/trigger.json new file mode 100644 index 00000000000..5c46142673f --- /dev/null +++ b/spec/fixtures/api/schemas/entities/trigger.json @@ -0,0 +1,39 @@ +{ + "type": "object", + "required": [ + "description", + "owner", + "last_used", + "has_token_exposed", + "token", + "can_access_project" + ], + "properties": { + "description": { + "type": ["string", "null"] + }, + "owner": { + "type": "object", + "$ref": "user.json" + }, + "last_used": { + "type": ["datetime", "null"] + }, + "token": { + "type": "string" + }, + "has_token_exposed": { + "type": "boolean" + }, + "can_access_project": { + "type": "boolean" + }, + "edit_project_trigger_path": { + "type": "string" + }, + "project_trigger_path": { + "type": "string" + } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/feature_flags_client_token.json b/spec/fixtures/api/schemas/feature_flags_client_token.json new file mode 100644 index 00000000000..115db422d12 --- /dev/null +++ b/spec/fixtures/api/schemas/feature_flags_client_token.json @@ -0,0 +1,10 @@ +{ + "type": "object", + "required" : [ + "token" + ], + "properties" : { + "token": { "type": ["string"] } + }, + "additionalProperties": false +} diff --git a/spec/fixtures/api/schemas/group_member.json b/spec/fixtures/api/schemas/group_member.json index 035c862d229..eefd4aeb219 100644 --- a/spec/fixtures/api/schemas/group_member.json +++ b/spec/fixtures/api/schemas/group_member.json @@ -62,7 +62,18 @@ "avatar_url": { "type": ["string", "null"] }, "web_url": { "type": "string" }, "blocked": { "type": "boolean" }, - "two_factor_enabled": { "type": "boolean" } + "two_factor_enabled": { "type": "boolean" }, + "status": { + "type": "object", + "required": [ + "emoji", + "message_html" + ], + "properties": { + "emoji": { "type": "string" }, + "message_html": { "type": "string" } + } + } } }, "invite": { diff --git a/spec/fixtures/api/schemas/public_api/v4/packages/package.json b/spec/fixtures/api/schemas/public_api/v4/packages/package.json index 757e5fd26b6..08909efd10c 100644 --- a/spec/fixtures/api/schemas/public_api/v4/packages/package.json +++ b/spec/fixtures/api/schemas/public_api/v4/packages/package.json @@ -11,6 +11,9 @@ "name": { "type": "string" }, + "conan_package_name": { + "type": "string" + }, "version": { "type": "string" }, diff --git a/spec/fixtures/api/schemas/registry/repository.json b/spec/fixtures/api/schemas/registry/repository.json index 1f84e787b19..18d2c68ac2f 100644 --- a/spec/fixtures/api/schemas/registry/repository.json +++ b/spec/fixtures/api/schemas/registry/repository.json @@ -20,6 +20,9 @@ "created_at": { "type": "date-time" }, + "cleanup_policy_started_at": { + "type": "date-time" + }, "tags_path": { "type": "string" }, diff --git a/spec/fixtures/api/schemas/unleash/unleash.json b/spec/fixtures/api/schemas/unleash/unleash.json new file mode 100644 index 00000000000..6eaf316bb11 --- /dev/null +++ b/spec/fixtures/api/schemas/unleash/unleash.json @@ -0,0 +1,20 @@ +{ + "additionalProperties": false, + "properties": { + "features": { + "items": { + "$ref": "unleash_feature.json" + }, + "minItems": 0, + "type": "array" + }, + "version": { + "type": "integer" + } + }, + "required": [ + "version", + "features" + ], + "type": "object" +} diff --git a/spec/fixtures/api/schemas/unleash/unleash_feature.json b/spec/fixtures/api/schemas/unleash/unleash_feature.json new file mode 100644 index 00000000000..71d375a5371 --- /dev/null +++ b/spec/fixtures/api/schemas/unleash/unleash_feature.json @@ -0,0 +1,27 @@ +{ + "type": "object", + "additionalProperties": false, + "required": [ + "name", + "enabled", + "strategies" + ], + "properties": { + "name": { + "type": "string" + }, + "enabled": { + "type": "boolean" + }, + "description": { + "type": "string" + }, + "strategies": { + "items": { + "$ref": "unleash_strategy.json" + }, + "minItems": 1, + "type": "array" + } + } +} diff --git a/spec/fixtures/api/schemas/unleash/unleash_strategy.json b/spec/fixtures/api/schemas/unleash/unleash_strategy.json new file mode 100644 index 00000000000..7b48038ad15 --- /dev/null +++ b/spec/fixtures/api/schemas/unleash/unleash_strategy.json @@ -0,0 +1,24 @@ +{ + "type": "object", + "additionalProperties": false, + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "parameters": { + "type": "object", + "additionalProperties": false, + "properties": { + "groupId": { + "type": "string" + }, + "percentage": { + "type": "integer" + } + } + } + } +} |