Commit 9354acba authored by bernardosunderhus's avatar bernardosunderhus

[API] Substitui todos enumerados para string

parent a051b4a7
......@@ -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:
......
......@@ -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
......@@ -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:
......
......@@ -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:
......
......@@ -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
......
......@@ -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:
......
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