Skip to content

Commit

Permalink
Fix request body for ApplyAdvancedGameSettings (#4)
Browse files Browse the repository at this point in the history
Remove `creativeModeEnabled` from the request body as it's not supposed
to be passed to the ApplyAdvancedGameSettings function, it's only
returned as response from the GetAdvancedGameSettings function.

Rename `advancedGameSettings` to `appliedAdvancedGameSettings` because
that is what ApplyAdvancedGameSettings expects, which isn't really
intuitive but that's what it wants.
  • Loading branch information
idebeijer authored Oct 12, 2024
1 parent 9053ea8 commit 9c37983
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions openapi/components/schemas/advancedGameSettings.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
type: object
properties:
creativeModeEnabled:
type: boolean
description: True if Advanced Game Settings are enabled for the currently loaded session
example: false
advancedGameSettings:
appliedAdvancedGameSettings:
type: object
description: Values of Advanced Game Settings. Key is the name of the setting, and value is its stringified value
additionalProperties:
Expand All @@ -22,5 +18,4 @@ properties:
FG.PlayerRules.GodMode: "False"
FG.PlayerRules.FlightMode: "False"
required:
- creativeModeEnabled
- advancedGameSettings
- appliedAdvancedGameSettings

0 comments on commit 9c37983

Please sign in to comment.