Skip to content

Commit

Permalink
add optional fields in properties
Browse files Browse the repository at this point in the history
  • Loading branch information
jalpp committed Apr 12, 2024
1 parent 9d7a58b commit e10589b
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/specs/examples/user-georges-bot.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@
"fideRating": 1500,
"uscfRating": 1500,
"ecfRating": 1500,
"cfcRating": 1500,
"dsbRating": 1500,
"links": "github.com/ornicar\r\ntwitter.com/ornicar"
},
"seenAt": 1522636452014,
Expand Down
1 change: 1 addition & 0 deletions doc/specs/schemas/Perf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ properties:
example: -22
prov:
type: boolean
description: only appears if a user's perf rating are [provisional](https://lichess.org/faq#provisional)
11 changes: 11 additions & 0 deletions doc/specs/schemas/Profile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,23 @@ properties:
fideRating:
type: integer
example: 1500
description: only appears if a user has set them
uscfRating:
type: integer
example: 1500
description: only appears if a user has set them
ecfRating:
type: integer
example: 1500
description: only appears if a user has set them
cfcRating:
type: integer
example: 1500
description: only appears if a user has set them
dsbRating:
type: integer
example: 1500
description: only appears if a user has set them
links:
type: string
example: "github.com/ornicar\r\ntwitter.com/ornicar"
2 changes: 2 additions & 0 deletions doc/specs/schemas/User.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ properties:
disabled:
type: boolean
example: false
description: only appears if a user's account is closed
tosViolation:
type: boolean
example: false
description: only appears if a user's account is closed via violation of [Lichess TOS](https://lichess.org/terms-of-service)
profile:
$ref: './Profile.yaml'
seenAt:
Expand Down
1 change: 1 addition & 0 deletions doc/specs/schemas/UserExtended.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ allOf:
followsYou:
type: boolean
example: false

2 changes: 2 additions & 0 deletions doc/specs/tags/users/api-user-username.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ get:
- Users
security:
- OAuth2: []

parameters:
- in: path
name: username
Expand All @@ -21,6 +22,7 @@ get:
schema:
type: boolean
default: false

responses:
"200":
description: The information of the user.
Expand Down

0 comments on commit e10589b

Please sign in to comment.