Skip to content

Commit

Permalink
Merge pull request #331 from tors42/fix-warnings
Browse files Browse the repository at this point in the history
Fix warnings
  • Loading branch information
fitztrev authored Apr 10, 2024
2 parents f6a70eb + fc2d9ab commit e3869c4
Show file tree
Hide file tree
Showing 26 changed files with 32 additions and 122 deletions.
6 changes: 6 additions & 0 deletions doc/redocly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ extends:

rules:
operation-4xx-response: off
no-ambiguous-paths: off # 25 warnings, 2024-04-09
# Example ambiguous paths:
# /api/tournament/{id1}/join
# /api/tournament/team-battle/{id2}
# If id1 has value "team-battle", and id2 has value "join",
# these paths would be identical...
47 changes: 0 additions & 47 deletions doc/specs/examples/_index.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
value: {
{
"type":"challenge",
"challenge": {
"id":"7pGLxJ4F",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
value: {
{
"type":"challengeCanceled",
"challenge": {
"id":"7pGLxJ4F",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
value: {
{
"type": "challengeDeclined",
"challenge": {
"id":"7pGLxJ4F",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
value: {
{
"type": "chatLine",
"username": "thibault",
"text": "Good luck, have fun",
Expand Down
6 changes: 0 additions & 6 deletions doc/specs/examples/chatLineSpectator.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
value: {
{
"type":"gameFinish",
"game": {
"gameId": "rCRw1AuO",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
value: {
{
"type": "gameFull",
"id": "5IrD6Gzz",
"rated": true,
Expand Down Expand Up @@ -26,7 +26,7 @@ value: {
"black": {
"id": "leela",
"name": "leela",
"rating": 2390,
"rating": 2390
},
"initialFen": "startpos",
"state": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
value: {
{
"type":"gameStart",
"game": {
"gameId": "rCRw1AuO",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
value: {
{
"type": "gameState",
"moves": "e2e4 c7c5 f2f4 d7d6 g1f3 b8c6 f1c4 g8f6 d2d3 g7g6 e1g1 f8g7 b1c3",
"wtime": 7598040,
Expand Down
10 changes: 0 additions & 10 deletions doc/specs/examples/gameStateResign.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
value: {
{
"type": "opponentGone",
"gone": true,
"claimWinInSeconds": 8
Expand Down
4 changes: 0 additions & 4 deletions doc/specs/examples/opponentGoneFalse.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions doc/specs/lichess-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,3 @@ components:
"board:play": Play with the Board API
"bot:play": Play with the Bot API. Only for [Bot accounts](#operation/botAccountUpgrade)
"web:mod": Use moderator tools (within the bounds of your permissions)

examples:
$ref: './examples/_index.yaml'

2 changes: 2 additions & 0 deletions doc/specs/schemas/ChallengeCanceledEvent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ properties:
const: challengeCanceled
challenge:
$ref: './ChallengeJson.yaml'
example:
$ref: '../examples/challengeCanceled.json'
2 changes: 2 additions & 0 deletions doc/specs/schemas/ChallengeDeclinedEvent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ properties:
const: challengeDeclined
challenge:
$ref: './ChallengeCanceledJson.yaml'
example:
$ref: '../examples/challengeDeclined.json'
2 changes: 2 additions & 0 deletions doc/specs/schemas/ChatLineEvent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ required:
- room
- username
- text
example:
$ref: '../examples/chatLine.json'
2 changes: 2 additions & 0 deletions doc/specs/schemas/GameFinishEvent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ properties:
const: gameFinish
game:
$ref: './GameEventInfo.yaml'
example:
$ref: '../examples/gameFinish.json'
2 changes: 2 additions & 0 deletions doc/specs/schemas/GameFullEvent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ required:
- black
- initialFen
- state
example:
$ref: '../examples/gameFull.json'
2 changes: 2 additions & 0 deletions doc/specs/schemas/GameStartEvent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ properties:
const: gameStart
game:
$ref: './GameEventInfo.yaml'
example:
$ref: '../examples/gameStart.json'
2 changes: 2 additions & 0 deletions doc/specs/schemas/GameStateEvent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ required:
- winc
- binc
- status
example:
$ref: '../examples/gameState.json'
2 changes: 2 additions & 0 deletions doc/specs/schemas/OpponentGone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ properties:
required:
- type
- gone
example:
$ref: '../examples/opponentGone.json'
15 changes: 0 additions & 15 deletions doc/specs/tags/board/api-board-game-stream-gameId.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,6 @@ get:
- $ref: '../../schemas/GameStateEvent.yaml'
- $ref: '../../schemas/ChatLineEvent.yaml'
- $ref: '../../schemas/OpponentGone.yaml'
examples:
gameFull:
$ref: '../../examples/gameFull.yaml'
gameState:
$ref: '../../examples/gameState.yaml'
chatLine:
$ref: '../../examples/chatLine.yaml'
chatLineSpectator:
$ref: '../../examples/chatLineSpectator.yaml'
opponentGoneTrue:
$ref: '../../examples/opponentGoneTrue.yaml'
opponentGoneFalse:
$ref: '../../examples/opponentGoneFalse.yaml'
gameStateResign:
$ref: '../../examples/gameStateResign.yaml'
"404":
description: The game was not found.
content:
Expand Down
11 changes: 0 additions & 11 deletions doc/specs/tags/board/api-stream-event.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,3 @@ get:
- $ref: '../../schemas/ChallengeEvent.yaml'
- $ref: '../../schemas/ChallengeCanceledEvent.yaml'
- $ref: '../../schemas/ChallengeDeclinedEvent.yaml'
examples:
challenge:
$ref: '../../examples/challenge.yaml'
challengeCanceled:
$ref: '../../examples/challengeCanceled.yaml'
challengeDeclined:
$ref: '../../examples/challengeDeclined.yaml'
gameStart:
$ref: '../../examples/gameStart.yaml'
gameFinish:
$ref: '../../examples/gameFinish.yaml'
15 changes: 0 additions & 15 deletions doc/specs/tags/bot/api-bot-game-stream-gameId.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,6 @@ get:
- $ref: '../../schemas/GameStateEvent.yaml'
- $ref: '../../schemas/ChatLineEvent.yaml'
- $ref: '../../schemas/OpponentGone.yaml'
examples:
gameFull:
$ref: '../../examples/gameFull.yaml'
gameState:
$ref: '../../examples/gameState.yaml'
chatLine:
$ref: '../../examples/chatLine.yaml'
chatLineSpectator:
$ref: '../../examples/chatLineSpectator.yaml'
opponentGoneTrue:
$ref: '../../examples/opponentGoneTrue.yaml'
opponentGoneFalse:
$ref: '../../examples/opponentGoneFalse.yaml'
gameStateResign:
$ref: '../../examples/gameStateResign.yaml'
"404":
description: The bot game was not found.
content:
Expand Down

0 comments on commit e3869c4

Please sign in to comment.