diff --git a/openapi/components/responses/JudgeNotFound.yaml b/openapi/components/responses/judge-not-found.yaml similarity index 72% rename from openapi/components/responses/JudgeNotFound.yaml rename to openapi/components/responses/judge-not-found.yaml index d244bd2..16fa88c 100644 --- a/openapi/components/responses/JudgeNotFound.yaml +++ b/openapi/components/responses/judge-not-found.yaml @@ -2,4 +2,4 @@ description: The specified judge was not found content: application/json: schema: - $ref: ../schemas/Error.yaml + $ref: ../schemas/error.yaml diff --git a/openapi/components/responses/JudgmentNotFound.yaml b/openapi/components/responses/judgment-not-found.yaml similarity index 72% rename from openapi/components/responses/JudgmentNotFound.yaml rename to openapi/components/responses/judgment-not-found.yaml index 464fa5e..6652d14 100644 --- a/openapi/components/responses/JudgmentNotFound.yaml +++ b/openapi/components/responses/judgment-not-found.yaml @@ -2,4 +2,4 @@ description: The specified judgment was not found content: application/json: schema: - $ref: ../schemas/Error.yaml + $ref: ../schemas/error.yaml diff --git a/openapi/components/responses/PollNotFound.yaml b/openapi/components/responses/poll-not-found.yaml similarity index 71% rename from openapi/components/responses/PollNotFound.yaml rename to openapi/components/responses/poll-not-found.yaml index a25eafb..70684dd 100644 --- a/openapi/components/responses/PollNotFound.yaml +++ b/openapi/components/responses/poll-not-found.yaml @@ -2,4 +2,4 @@ description: The specified poll was not found content: application/json: schema: - $ref: ../schemas/Error.yaml + $ref: ../schemas/error.yaml diff --git a/openapi/components/responses/Unauthorized.yaml b/openapi/components/responses/unauthorized.yaml similarity index 66% rename from openapi/components/responses/Unauthorized.yaml rename to openapi/components/responses/unauthorized.yaml index b097902..15dba9b 100644 --- a/openapi/components/responses/Unauthorized.yaml +++ b/openapi/components/responses/unauthorized.yaml @@ -2,4 +2,4 @@ description: Unauthorized content: application/json: schema: - $ref: ../schemas/Error.yaml + $ref: ../schemas/error.yaml diff --git a/openapi/components/schemas/Candidate.yaml b/openapi/components/schemas/candidate.yaml similarity index 89% rename from openapi/components/schemas/Candidate.yaml rename to openapi/components/schemas/candidate.yaml index 63f03f4..f5a52a6 100644 --- a/openapi/components/schemas/Candidate.yaml +++ b/openapi/components/schemas/candidate.yaml @@ -9,5 +9,5 @@ properties: judgments: type: array items: - $ref: ./Judgment.yaml + $ref: ./judgment.yaml description: The judgments received by this candidate. diff --git a/openapi/components/schemas/Error.yaml b/openapi/components/schemas/error.yaml similarity index 100% rename from openapi/components/schemas/Error.yaml rename to openapi/components/schemas/error.yaml diff --git a/openapi/components/schemas/Grade.yaml b/openapi/components/schemas/grade.yaml similarity index 100% rename from openapi/components/schemas/Grade.yaml rename to openapi/components/schemas/grade.yaml diff --git a/openapi/components/schemas/Judge.yaml b/openapi/components/schemas/judge.yaml similarity index 100% rename from openapi/components/schemas/Judge.yaml rename to openapi/components/schemas/judge.yaml diff --git a/openapi/components/schemas/Judgment.yaml b/openapi/components/schemas/judgment.yaml similarity index 100% rename from openapi/components/schemas/Judgment.yaml rename to openapi/components/schemas/judgment.yaml diff --git a/openapi/components/schemas/Poll.yaml b/openapi/components/schemas/poll.yaml similarity index 87% rename from openapi/components/schemas/Poll.yaml rename to openapi/components/schemas/poll.yaml index 97c4118..e231886 100644 --- a/openapi/components/schemas/Poll.yaml +++ b/openapi/components/schemas/poll.yaml @@ -11,17 +11,17 @@ properties: minItems: 2 maxItems: 20 items: - $ref: ./Candidate.yaml + $ref: ./candidate.yaml description: The candidates being judged in a poll. grades: type: array items: - $ref: ./Grade.yaml + $ref: ./grade.yaml description: The grades on which one judges a candidate. judges: type: array items: - $ref: ./Judge.yaml + $ref: ./judge.yaml description: The judges that are allowed to participate to the election. restrict_judges: type: boolean diff --git a/openapi/components/schemas/Result.yaml b/openapi/components/schemas/result.yaml similarity index 83% rename from openapi/components/schemas/Result.yaml rename to openapi/components/schemas/result.yaml index ce7d2d6..f196349 100644 --- a/openapi/components/schemas/Result.yaml +++ b/openapi/components/schemas/result.yaml @@ -1,7 +1,7 @@ type: object properties: poll: - $ref: ./Poll.yaml + $ref: ./poll.yaml ranking: type: array items: diff --git a/openapi/components/securitySchemes/judgeAuth.yaml b/openapi/components/securitySchemes/judge-auth.yaml similarity index 100% rename from openapi/components/securitySchemes/judgeAuth.yaml rename to openapi/components/securitySchemes/judge-auth.yaml diff --git a/openapi/components/securitySchemes/pollAuth.yaml b/openapi/components/securitySchemes/poll-auth.yaml similarity index 100% rename from openapi/components/securitySchemes/pollAuth.yaml rename to openapi/components/securitySchemes/poll-auth.yaml diff --git a/openapi/components/securitySchemes/resultAuth.yaml b/openapi/components/securitySchemes/result-auth.yaml similarity index 100% rename from openapi/components/securitySchemes/resultAuth.yaml rename to openapi/components/securitySchemes/result-auth.yaml diff --git a/openapi/paths/judgments@{judgment-id}.yaml b/openapi/paths/judgments@{judgment-id}.yaml index 5b0e44a..d08e634 100644 --- a/openapi/paths/judgments@{judgment-id}.yaml +++ b/openapi/paths/judgments@{judgment-id}.yaml @@ -13,7 +13,7 @@ get: content: application/json: schema: - $ref: ../components/schemas/Judgment.yaml + $ref: ../components/schemas/judgment.yaml delete: operationId: delete-poll-judgment summary: Deletes a judgment @@ -21,6 +21,6 @@ delete: '200': description: OK '404': - $ref: ../components/responses/JudgmentNotFound.yaml + $ref: ../components/responses/judgment-not-found.yaml security: - judgeAuth: [] diff --git a/openapi/paths/polls.yaml b/openapi/paths/polls.yaml index 03131e2..4dfdab0 100644 --- a/openapi/paths/polls.yaml +++ b/openapi/paths/polls.yaml @@ -9,7 +9,7 @@ get: schema: type: array items: - $ref: ../components/schemas/Poll.yaml + $ref: ../components/schemas/poll.yaml post: operationId: create-poll summary: Creates a poll. @@ -18,7 +18,7 @@ post: content: application/json: schema: - $ref: ../components/schemas/Poll.yaml + $ref: ../components/schemas/poll.yaml responses: '201': description: Created diff --git a/openapi/paths/polls@{poll-id}.yaml b/openapi/paths/polls@{poll-id}.yaml index 6812685..2e575d0 100644 --- a/openapi/paths/polls@{poll-id}.yaml +++ b/openapi/paths/polls@{poll-id}.yaml @@ -14,9 +14,9 @@ get: content: application/json: schema: - $ref: ../components/schemas/Poll.yaml + $ref: ../components/schemas/poll.yaml '404': - $ref: ../components/responses/PollNotFound.yaml + $ref: ../components/responses/poll-not-found.yaml patch: operationId: update-poll summary: Updates a poll @@ -25,7 +25,7 @@ patch: content: application/json: schema: - $ref: ../components/schemas/Poll.yaml + $ref: ../components/schemas/poll.yaml security: - {} - pollAuth: [] @@ -37,7 +37,7 @@ patch: schema: type: array items: - $ref: ../components/schemas/Poll.yaml + $ref: ../components/schemas/poll.yaml delete: operationId: delete-poll summary: Deletes a poll @@ -45,6 +45,6 @@ delete: '200': description: OK '404': - $ref: ../components/responses/PollNotFound.yaml + $ref: ../components/responses/poll-not-found.yaml security: - pollAuth: [] diff --git a/openapi/paths/polls@{poll-id}@judges.yaml b/openapi/paths/polls@{poll-id}@judges.yaml index 4038117..7c566b5 100644 --- a/openapi/paths/polls@{poll-id}@judges.yaml +++ b/openapi/paths/polls@{poll-id}@judges.yaml @@ -11,7 +11,7 @@ post: content: application/json: schema: - $ref: ../components/schemas/Judge.yaml + $ref: ../components/schemas/judge.yaml responses: '200': description: Invitation was sent @@ -20,4 +20,4 @@ post: schema: type: string '404': - $ref: ../components/responses/PollNotFound.yaml + $ref: ../components/responses/poll-not-found.yaml diff --git a/openapi/paths/polls@{poll-id}@judges@{judge-id}@.yaml b/openapi/paths/polls@{poll-id}@judges@{judge-id}@.yaml index 3d10291..0732f21 100644 --- a/openapi/paths/polls@{poll-id}@judges@{judge-id}@.yaml +++ b/openapi/paths/polls@{poll-id}@judges@{judge-id}@.yaml @@ -13,9 +13,9 @@ get: content: application/json: schema: - $ref: ../components/schemas/Judge.yaml + $ref: ../components/schemas/judge.yaml '404': - $ref: ../components/responses/JudgeNotFound.yaml + $ref: ../components/responses/judge-not-found.yaml security: - {} - pollAuth: [] @@ -26,6 +26,6 @@ delete: '200': description: OK '404': - $ref: ../components/responses/JudgeNotFound.yaml + $ref: ../components/responses/judge-not-found.yaml security: - pollAuth: [] diff --git a/openapi/paths/polls@{poll-id}@judgments.yaml b/openapi/paths/polls@{poll-id}@judgments.yaml index af63dd7..5f8eebd 100644 --- a/openapi/paths/polls@{poll-id}@judgments.yaml +++ b/openapi/paths/polls@{poll-id}@judgments.yaml @@ -5,14 +5,14 @@ parameters: schema: type: string post: - operationId: create-poll-judgment + operationId: create-judgment summary: Creates a judgment requestBody: required: true content: application/json: schema: - $ref: ../components/schemas/Judgment.yaml + $ref: ../components/schemas/judgment.yaml security: - {} - judgeAuth: [] diff --git a/openapi/paths/polls@{poll-id}@results.yaml b/openapi/paths/polls@{poll-id}@results.yaml index 33a467e..8746428 100644 --- a/openapi/paths/polls@{poll-id}@results.yaml +++ b/openapi/paths/polls@{poll-id}@results.yaml @@ -13,6 +13,6 @@ get: content: text/plain: schema: - $ref: ../components/schemas/Result.yaml + $ref: ../components/schemas/result.yaml '404': - $ref: ../components/responses/PollNotFound.yaml + $ref: ../components/responses/poll-not-found.yaml