From 8b006f889148b3f230d37482c091d7d5c3ef952d Mon Sep 17 00:00:00 2001 From: Michael Kohler Date: Fri, 9 Jul 2021 18:42:26 +0000 Subject: [PATCH] chore: sort swagger definitions alphabetically --- server/swagger.yml | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/server/swagger.yml b/server/swagger.yml index e0d9ecab..5a2dc99a 100644 --- a/server/swagger.yml +++ b/server/swagger.yml @@ -141,10 +141,21 @@ paths: $ref: "#/definitions/Text" definitions: - SentencesList: - type: "array" - items: - $ref: "#/definitions/Sentence" + GeneralStats: + type: "object" + properties: + added: + type: "integer" + format: "int64" + validated: + type: "integer" + format: "int64" + rejected: + type: "integer" + format: "int64" + contributors: + type: "integer" + format: "int64" Sentence: type: "object" properties: @@ -166,24 +177,13 @@ definitions: updatedAt: type: "string" format: "date-time" - Text: - type: "string" - example: "Sentence One\nSentence Two" + SentencesList: + type: "array" + items: + $ref: "#/definitions/Sentence" SourceText: type: "string" example: "Source A\nSource B" - GeneralStats: - type: "object" - properties: - added: - type: "integer" - format: "int64" - validated: - type: "integer" - format: "int64" - rejected: - type: "integer" - format: "int64" - contributors: - type: "integer" - format: "int64" + Text: + type: "string" + example: "Sentence One\nSentence Two"