Skip to content

Commit

Permalink
Add example instead of new schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
tors42 committed Apr 7, 2024
1 parent 9812131 commit d5d3b88
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 39 deletions.
124 changes: 124 additions & 0 deletions doc/specs/examples/user-georges-bot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"id": "georges-bot",
"username": "Georges-bot",
"perfs": {
"chess960": {
"games": 2945,
"rating": 1609,
"rd": 60,
"prog": -22,
"prov": true
},
"atomic": {
"games": 2945,
"rating": 1609,
"rd": 60,
"prog": -22,
"prov": true
},
"racingKings": {
"games": 2945,
"rating": 1609,
"rd": 60,
"prog": -22,
"prov": true
},
"ultraBullet": {
"games": 2945,
"rating": 1609,
"rd": 60,
"prog": -22,
"prov": true
},
"blitz": {
"games": 2945,
"rating": 1609,
"rd": 60,
"prog": -22,
"prov": true
},
"kingOfTheHill": {
"games": 2945,
"rating": 1609,
"rd": 60,
"prog": -22,
"prov": true
},
"bullet": {
"games": 2945,
"rating": 1609,
"rd": 60,
"prog": -22,
"prov": true
},
"correspondence": {
"games": 2945,
"rating": 1609,
"rd": 60,
"prog": -22,
"prov": true
},
"horde": {
"games": 2945,
"rating": 1609,
"rd": 60,
"prog": -22,
"prov": true
},
"puzzle": {
"games": 2945,
"rating": 1609,
"rd": 60,
"prog": -22,
"prov": true
},
"classical": {
"games": 2945,
"rating": 1609,
"rd": 60,
"prog": -22,
"prov": true
},
"rapid": {
"games": 2945,
"rating": 1609,
"rd": 60,
"prog": -22,
"prov": true
},
"storm": {
"runs": 44,
"score": 61
},
"racer": {
"runs": 44,
"score": 61
},
"streak": {
"runs": 44,
"score": 61
}
},
"createdAt": 1290415680000,
"disabled": false,
"tosViolation": false,
"profile": {
"country": "EC",
"location": "string",
"bio": "Free bugs!",
"firstName": "Thibault",
"lastName": "Duplessis",
"fideRating": 1500,
"uscfRating": 1500,
"ecfRating": 1500,
"links": "github.com/ornicar\r\ntwitter.com/ornicar"
},
"seenAt": 1522636452014,
"patron": true,
"verified": true,
"playTime": {
"total": 3296897,
"tv": 12134
},
"title": "BOT"
}
2 changes: 0 additions & 2 deletions doc/specs/schemas/BotTitle.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions doc/specs/schemas/BotUser.yaml

This file was deleted.

4 changes: 3 additions & 1 deletion doc/specs/tags/bot/api-bot-online.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ get:
content:
application/x-ndjson:
schema:
$ref: '../../schemas/BotUser.yaml'
$ref: '../../schemas/User.yaml'
example:
$ref: '../../examples/user-georges-bot.json'

0 comments on commit d5d3b88

Please sign in to comment.