Commit 9354acba authored by bernardosunderhus's avatar bernardosunderhus

[API] Substitui todos enumerados para string

parent a051b4a7
...@@ -26,11 +26,16 @@ Assessment: ...@@ -26,11 +26,16 @@ Assessment:
- schedule - schedule
properties: properties:
status: status:
description: '[PREP, SUBMISSION, EVALUATION]' type: string
type: integer enum:
- PREP
- SUBMISSION
- EVALUATION
type: type:
description: '[VIRTUAL, HANDMADE]' type: string
type: integer enum:
- VIRTUAL
- HANDMADE
schedule: schedule:
$ref: '#/ScheduledEvent' $ref: '#/ScheduledEvent'
location: location:
...@@ -42,8 +47,10 @@ Assessment: ...@@ -42,8 +47,10 @@ Assessment:
description: Object identifier description: Object identifier
type: integer type: integer
locationType: locationType:
type: integer type: string
description: '[ONLINE, ON_SITE]' enum:
- ONLINE
- ON_SITE
resultAvailable: resultAvailable:
description: description:
Boolean indicating if the result is already avialable to exhibition Boolean indicating if the result is already avialable to exhibition
...@@ -76,8 +83,10 @@ HandmadeAssessment: ...@@ -76,8 +83,10 @@ HandmadeAssessment:
- type: object - type: object
properties: properties:
submitterType: submitterType:
type: integer type: string
description: '[ADMIN, ADMIN_OR_COMPETIFIER]' enum:
- ADMIN
- ADMIN_OR_COMPETIFIER
AssessmentEvent: AssessmentEvent:
properties: properties:
timestamp: timestamp:
......
...@@ -5,11 +5,10 @@ Competifier: ...@@ -5,11 +5,10 @@ Competifier:
items: items:
$ref: '#/Tag' $ref: '#/Tag'
type: type:
description: '[SOLO, TEAM]' type: string
type: integer
enum: enum:
- 0 - SOLO
- 1 - TEAM
events: events:
type: array type: array
items: items:
...@@ -76,9 +75,6 @@ CompetifierEvent: ...@@ -76,9 +75,6 @@ CompetifierEvent:
descr: descr:
type: string type: string
type: type:
type: integer type: string
enum:
- 0
- 1
...@@ -48,8 +48,10 @@ Question: ...@@ -48,8 +48,10 @@ Question:
description: Weight associated with this Question description: Weight associated with this Question
type: number type: number
status: status:
description: '{ACTIVE, CANCELED}' type: string
type: integer enum:
- ACTIVE
- CANCELED
discriminator: discriminator:
propertyName: type propertyName: type
mapping: mapping:
...@@ -92,8 +94,10 @@ Exam: ...@@ -92,8 +94,10 @@ Exam:
- oid - oid
properties: properties:
type: type:
description: '{SUBJECTIVE, OBJECTIVE}' type: string
type: integer enum:
- SUBJECTIVE
- OBJECTIVE
title: title:
type: string type: string
cover: cover:
......
...@@ -21,8 +21,10 @@ Phase: ...@@ -21,8 +21,10 @@ Phase:
order: order:
type: integer type: integer
type: type:
description: {CLASSIFICATORY, FINAL} type: string
type: integer enum:
- CLASSIFICATORY
- FINAL
status: status:
type: integer type: integer
oid: oid:
...@@ -46,8 +48,13 @@ PhaseEvent: ...@@ -46,8 +48,13 @@ PhaseEvent:
descr: descr:
type: string type: string
type: type:
description: '{PHASE_CREATED, PHASE_STARTED, EVALUATION_FORMULA_UPDATED, RANKING_EVALUATED, PHASE_CLOSED}' type: string
type: integer enum:
- PHASE_CREATED
- PHASE_STARTED
- EVALUATION_FORMULA_UPDATED
- RANKING_EVALUATED
- PHASE_CLOSED
PhaseParticipation: PhaseParticipation:
properties: properties:
rank: rank:
...@@ -84,8 +91,10 @@ ClassificationRule: ...@@ -84,8 +91,10 @@ ClassificationRule:
oid: oid:
type: integer type: integer
type: type:
description: '{BEST_RANKED, MINIMUM_PERFORMANCE}' type: string
type: integer enum:
- BEST_RANKED
- MINIMUM_PERFORMANCE
discriminator: discriminator:
propertyName: type propertyName: type
mapping: mapping:
...@@ -125,8 +134,10 @@ Rank: ...@@ -125,8 +134,10 @@ Rank:
grade: grade:
type: number type: number
status: status:
description: '[QUALIFIED, DISQUALIFIED]' type: string
type: integer enum:
- QUALIFIED
- DISQUALIFIED
evaluations: evaluations:
type: array type: array
items: items:
......
...@@ -4,8 +4,10 @@ AssessmentSubmission: ...@@ -4,8 +4,10 @@ AssessmentSubmission:
description: The oid assessment that this submission refers to description: The oid assessment that this submission refers to
type: integer type: integer
type: type:
description: '{VIRTUAL, HANDMADE}' type: string
type: integer enum:
- VIRTUAL
- HANDMADE
lastUpdate: lastUpdate:
format: date-time format: date-time
description: Last time this submission was modified description: Last time this submission was modified
......
...@@ -42,13 +42,18 @@ Subscription: ...@@ -42,13 +42,18 @@ Subscription:
timestamp: timestamp:
type: integer type: integer
status: status:
description: '{WAITING_REVIEW, ACCEPTED, REJECTED}' type: string
type: integer enum:
- WAITING_REVIEW
- ACCEPTED
- REJECTED
oid: oid:
type: integer type: integer
type: type:
description: '{TEAM, SOLO}' type: string
type: integer enum:
- TEAM
- SOLO
discriminator: discriminator:
propertyName: type propertyName: type
mapping: 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