Skip to content

Commit

Permalink
Update openapi.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTedder committed Jul 18, 2024
1 parent 8379d2a commit 1c03707
Showing 1 changed file with 12 additions and 121 deletions.
133 changes: 12 additions & 121 deletions LeaderboardBackend/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -886,44 +886,6 @@
},
"components": {
"schemas": {
"CalendarSystem": {
"required": [
"eras",
"id",
"maxYear",
"minYear",
"name"
],
"type": "object",
"properties": {
"id": {
"type": "string",
"readOnly": true
},
"name": {
"type": "string",
"readOnly": true
},
"minYear": {
"type": "integer",
"format": "int32",
"readOnly": true
},
"maxYear": {
"type": "integer",
"format": "int32",
"readOnly": true
},
"eras": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Era"
},
"readOnly": true
}
},
"additionalProperties": false
},
"CategoryViewModel": {
"required": [
"id",
Expand Down Expand Up @@ -1035,10 +997,16 @@
"type": "object",
"properties": {
"playedOn": {
"$ref": "#/components/schemas/LocalDate"
"type": "string",
"description": "The date the `Run` was played on.",
"format": "date",
"example": "2024-07-18"
},
"submittedAt": {
"$ref": "#/components/schemas/Instant"
"type": "string",
"description": "The time the request was made at.",
"format": "date-time",
"example": "2024-07-18T16:42:35.6691199Z"
},
"categoryId": {
"type": "integer",
Expand All @@ -1049,36 +1017,6 @@
"additionalProperties": false,
"description": "This request object is sent when creating a `Run`."
},
"Era": {
"required": [
"name"
],
"type": "object",
"properties": {
"name": {
"type": "string",
"readOnly": true
}
},
"additionalProperties": false
},
"Instant": {
"type": "object",
"additionalProperties": false
},
"IsoDayOfWeek": {
"enum": [
"None",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday"
],
"type": "string"
},
"LeaderboardViewModel": {
"required": [
"categories",
Expand Down Expand Up @@ -1121,53 +1059,6 @@
"additionalProperties": false,
"description": "Represents a collection of `Leaderboard` entities."
},
"LocalDate": {
"required": [
"calendar",
"day",
"dayOfWeek",
"dayOfYear",
"era",
"month",
"year",
"yearOfEra"
],
"type": "object",
"properties": {
"calendar": {
"$ref": "#/components/schemas/CalendarSystem"
},
"year": {
"type": "integer",
"format": "int32"
},
"month": {
"type": "integer",
"format": "int32"
},
"day": {
"type": "integer",
"format": "int32"
},
"dayOfWeek": {
"$ref": "#/components/schemas/IsoDayOfWeek"
},
"yearOfEra": {
"type": "integer",
"format": "int32",
"readOnly": true
},
"era": {
"$ref": "#/components/schemas/Era"
},
"dayOfYear": {
"type": "integer",
"format": "int32",
"readOnly": true
}
},
"additionalProperties": false
},
"LoginRequest": {
"required": [
"email",
Expand Down Expand Up @@ -1296,7 +1187,10 @@
"description": "The unique identifier of the `Run`.\n\r\nGenerated on creation."
},
"submittedAt": {
"$ref": "#/components/schemas/Instant"
"type": "string",
"description": "The time the request was made at.",
"format": "date-time",
"example": "2024-07-18T16:42:35.6691199Z"
},
"categoryId": {
"type": "integer",
Expand Down Expand Up @@ -1340,9 +1234,6 @@
"additionalProperties": false
},
"ValidationProblemDetails": {
"required": [
"errors"
],
"type": "object",
"properties": {
"type": {
Expand Down

0 comments on commit 1c03707

Please sign in to comment.