Skip to content

Commit fc5f542

Browse files
committed
Improve game create dto in spec
1 parent 044524f commit fc5f542

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

openapi.yaml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ paths:
6565
schema:
6666
type: object
6767
description: Settings for the new game and
68-
allOf:
69-
- $ref: "#/components/schemas/GameSettings"
68+
required: [settings, player]
7069
properties:
7170
player:
7271
$ref: "#/components/schemas/Player"
@@ -77,13 +76,8 @@ paths:
7776
7877
In the future, there might be a mechanism for technical users to create games without joining them,
7978
where this property is optional.
80-
allowedGameModes:
81-
type: array
82-
items:
83-
$ref: "#/components/schemas/GameMode"
84-
description: |
85-
If `gameMode` is not given, the new game will select a random game mode from this array.
86-
If both this array and the `gameMode` option are omitted, a game mode will be picked from all available game modes.
79+
settings:
80+
$ref: "#/components/schemas/GameSettings"
8781
/games/{id}:
8882
parameters:
8983
- $ref: "#/components/parameters/pathGameId"

0 commit comments

Comments
 (0)