Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Registry
Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Competify
Docs
Commits
9354acba
Commit
9354acba
authored
May 15, 2018
by
bernardosunderhus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[API] Substitui todos enumerados para string
parent
a051b4a7
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
61 additions
and
34 deletions
+61
-34
Assessment.yaml
Api/components/schemas/Assessment.yaml
+17
-8
Competifier.yaml
Api/components/schemas/Competifier.yaml
+4
-8
Exam.yaml
Api/components/schemas/Exam.yaml
+8
-4
Phase.yaml
Api/components/schemas/Phase.yaml
+19
-8
Submission.yaml
Api/components/schemas/Submission.yaml
+4
-2
Subscription.yaml
Api/components/schemas/Subscription.yaml
+9
-4
No files found.
Api/components/schemas/Assessment.yaml
View file @
9354acba
...
...
@@ -26,11 +26,16 @@ Assessment:
-
schedule
properties
:
status
:
description
:
'
[PREP,
SUBMISSION,
EVALUATION]'
type
:
integer
type
:
string
enum
:
-
PREP
-
SUBMISSION
-
EVALUATION
type
:
description
:
'
[VIRTUAL,
HANDMADE]'
type
:
integer
type
:
string
enum
:
-
VIRTUAL
-
HANDMADE
schedule
:
$ref
:
'
#/ScheduledEvent'
location
:
...
...
@@ -42,8 +47,10 @@ Assessment:
description
:
Object identifier
type
:
integer
locationType
:
type
:
integer
description
:
'
[ONLINE,
ON_SITE]'
type
:
string
enum
:
-
ONLINE
-
ON_SITE
resultAvailable
:
description
:
Boolean indicating if the result is already avialable to exhibition
...
...
@@ -76,8 +83,10 @@ HandmadeAssessment:
-
type
:
object
properties
:
submitterType
:
type
:
integer
description
:
'
[ADMIN,
ADMIN_OR_COMPETIFIER]'
type
:
string
enum
:
-
ADMIN
-
ADMIN_OR_COMPETIFIER
AssessmentEvent
:
properties
:
timestamp
:
...
...
Api/components/schemas/Competifier.yaml
View file @
9354acba
...
...
@@ -5,11 +5,10 @@ Competifier:
items
:
$ref
:
'
#/Tag'
type
:
description
:
'
[SOLO,
TEAM]'
type
:
integer
type
:
string
enum
:
-
0
-
1
-
SOLO
-
TEAM
events
:
type
:
array
items
:
...
...
@@ -76,9 +75,6 @@ CompetifierEvent:
descr
:
type
:
string
type
:
type
:
integer
enum
:
-
0
-
1
type
:
string
Api/components/schemas/Exam.yaml
View file @
9354acba
...
...
@@ -48,8 +48,10 @@ Question:
description
:
Weight associated with this Question
type
:
number
status
:
description
:
'
{ACTIVE,
CANCELED}'
type
:
integer
type
:
string
enum
:
-
ACTIVE
-
CANCELED
discriminator
:
propertyName
:
type
mapping
:
...
...
@@ -92,8 +94,10 @@ Exam:
-
oid
properties
:
type
:
description
:
'
{SUBJECTIVE,
OBJECTIVE}'
type
:
integer
type
:
string
enum
:
-
SUBJECTIVE
-
OBJECTIVE
title
:
type
:
string
cover
:
...
...
Api/components/schemas/Phase.yaml
View file @
9354acba
...
...
@@ -21,8 +21,10 @@ Phase:
order
:
type
:
integer
type
:
description
:
{
CLASSIFICATORY
,
FINAL
}
type
:
integer
type
:
string
enum
:
-
CLASSIFICATORY
-
FINAL
status
:
type
:
integer
oid
:
...
...
@@ -46,8 +48,13 @@ PhaseEvent:
descr
:
type
:
string
type
:
description
:
'
{PHASE_CREATED,
PHASE_STARTED,
EVALUATION_FORMULA_UPDATED,
RANKING_EVALUATED,
PHASE_CLOSED}'
type
:
integer
type
:
string
enum
:
-
PHASE_CREATED
-
PHASE_STARTED
-
EVALUATION_FORMULA_UPDATED
-
RANKING_EVALUATED
-
PHASE_CLOSED
PhaseParticipation
:
properties
:
rank
:
...
...
@@ -84,8 +91,10 @@ ClassificationRule:
oid
:
type
:
integer
type
:
description
:
'
{BEST_RANKED,
MINIMUM_PERFORMANCE}'
type
:
integer
type
:
string
enum
:
-
BEST_RANKED
-
MINIMUM_PERFORMANCE
discriminator
:
propertyName
:
type
mapping
:
...
...
@@ -125,8 +134,10 @@ Rank:
grade
:
type
:
number
status
:
description
:
'
[QUALIFIED,
DISQUALIFIED]'
type
:
integer
type
:
string
enum
:
-
QUALIFIED
-
DISQUALIFIED
evaluations
:
type
:
array
items
:
...
...
Api/components/schemas/Submission.yaml
View file @
9354acba
...
...
@@ -4,8 +4,10 @@ AssessmentSubmission:
description
:
The oid assessment that this submission refers to
type
:
integer
type
:
description
:
'
{VIRTUAL,
HANDMADE}'
type
:
integer
type
:
string
enum
:
-
VIRTUAL
-
HANDMADE
lastUpdate
:
format
:
date-time
description
:
Last time this submission was modified
...
...
Api/components/schemas/Subscription.yaml
View file @
9354acba
...
...
@@ -42,13 +42,18 @@ Subscription:
timestamp
:
type
:
integer
status
:
description
:
'
{WAITING_REVIEW,
ACCEPTED,
REJECTED}'
type
:
integer
type
:
string
enum
:
-
WAITING_REVIEW
-
ACCEPTED
-
REJECTED
oid
:
type
:
integer
type
:
description
:
'
{TEAM,
SOLO}'
type
:
integer
type
:
string
enum
:
-
TEAM
-
SOLO
discriminator
:
propertyName
:
type
mapping
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment