Commit a72767b0 authored by Rosana Aurélio's avatar Rosana Aurélio

[API] Correção schema de fases e criação de schema para competição.

parent 9f96699f
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
"$ref": "https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.json#/Phase" "$ref": "https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.json#/Phase"
}, },
"Competition": { "Competition": {
"$ref": "https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.json#/Competition" "$ref": "https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Competition.json#/Competition"
}, },
"PhaseEvent": { "PhaseEvent": {
"$ref": "https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.json#/PhaseEvent" "$ref": "https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Phase.json#/PhaseEvent"
......
{
"Competition": {
"required": [
"id",
"uri",
"name",
"status",
"subscription"
],
"properties": {
"uri": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"ACTIVE",
"INACTIVE"
]
},
"subscription": {
"$ref": "https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.json#/Subscription"
},
"exams": {
"type": "array",
"items": [
{
"type": "integer"
}
]
},
"phases": {
"type": "array",
"items": [
{
"type": "integer"
}
]
},
"finalPhase": "integer",
"initialPhase": "integer",
"currentPhase": "integer",
"competifiers": {
"type": "array",
"items": [
{
"type": "integer"
}
]
}
}
}
}
\ No newline at end of file
...@@ -33,13 +33,13 @@ ...@@ -33,13 +33,13 @@
"$ref": "#/ClassificationStrategy" "$ref": "#/ClassificationStrategy"
}, },
"ranking": { "ranking": {
"$ref": "#/Ranking" "type": "integer"
}, },
"assessments": { "assessments": {
"type": "array", "type": "array",
"items": [ "items": [
{ {
"$ref": "https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Assessment.json#/Assessment" "type": "integer"
} }
] ]
}, },
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
"type": "array", "type": "array",
"items": [ "items": [
{ {
"$ref": "#/PhaseEvent" "type": "integer"
} }
] ]
}, },
...@@ -63,12 +63,12 @@ ...@@ -63,12 +63,12 @@
"type": "array", "type": "array",
"items": [ "items": [
{ {
"$ref": "#/PhaseParticipation" "type": "integer"
} }
] ]
}, },
"competition": { "competition": {
"$ref": "#/Competition" "type": "integer"
} }
} }
}, },
...@@ -336,62 +336,5 @@ ...@@ -336,62 +336,5 @@
"ASSESSMENT_CONCLUSION_TIME": "#/AssessmentConclusionTime" "ASSESSMENT_CONCLUSION_TIME": "#/AssessmentConclusionTime"
} }
} }
},
"Competition": {
"required": [
"id",
"uri",
"name",
"status",
"subscription"
],
"properties": {
"uri": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"ACTIVE",
"INACTIVE"
]
},
"subscription": {
"$ref": "https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Subscription.json#/Subscription"
},
"exams": {
"type": "array",
"items": [
{
"$ref": "https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Exam.json#/Exam"
}
]
},
"phases": {
"type": "array",
"items": [
{
"type": "integer"
}
]
},
"finalPhase": "integer",
"initialPhase": "integer",
"currentPhase": "integer",
"competifiers": {
"type": "array",
"items": [
{
"$ref": "https://gitlab.dev.evologica.com.br/Competify/Docs/raw/master/Api/components/schemas/Competifier.json#/Competifier"
}
]
}
}
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment