Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-23 21:08:27 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-23 21:08:27 +0300
commit3ca896b640def57a58485def308748b2fccbd0bb (patch)
tree7aead6484759d2a473bf9776aa7d87632f1e105f /app/validators/json_schemas
parentabdb550f6937ce69ec38954f24ef221d07637438 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/validators/json_schemas')
-rw-r--r--app/validators/json_schemas/abuse_report_evidence.json107
1 files changed, 107 insertions, 0 deletions
diff --git a/app/validators/json_schemas/abuse_report_evidence.json b/app/validators/json_schemas/abuse_report_evidence.json
new file mode 100644
index 00000000000..e00628d5704
--- /dev/null
+++ b/app/validators/json_schemas/abuse_report_evidence.json
@@ -0,0 +1,107 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "description": "Evidence to support an abuse report",
+ "type": "object",
+ "properties": {
+ "issues": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "title": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title",
+ "description"
+ ]
+ }
+ },
+ "snippets": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "content": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "content"
+ ]
+ }
+ },
+ "notes": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "content": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "content"
+ ]
+ }
+ },
+ "user": {
+ "type": "object",
+ "properties": {
+ "login_count": {
+ "type": "integer"
+ },
+ "account_age": {
+ "type": "integer"
+ },
+ "spam_score": {
+ "type": "number"
+ },
+ "telesign_score": {
+ "type": "number"
+ },
+ "arkos_score": {
+ "type": "number"
+ },
+ "pvs_score": {
+ "type": "number"
+ },
+ "product_coverage": {
+ "type": "number"
+ },
+ "virus_total_score": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "login_count",
+ "account_age",
+ "spam_score",
+ "telesign_score",
+ "arkos_score",
+ "pvs_score",
+ "product_coverage",
+ "virus_total_score"
+ ]
+ }
+ },
+ "required": [
+ "user"
+ ]
+}