-
-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #394 from fitztrev/study-schemas
Update study schemas
- Loading branch information
Showing
5 changed files
with
89 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,53 @@ | ||
example: { 'chapters': [{ 'id': 'WTvnkWAL', 'name': 'Game 2' }] } | ||
type: object | ||
|
||
properties: | ||
chapters: | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
id: | ||
type: string | ||
description: The chapter ID | ||
name: | ||
type: string | ||
description: The chapter name | ||
players: | ||
type: array | ||
minItems: 2 | ||
maxItems: 2 | ||
items: | ||
type: object | ||
properties: | ||
name: | ||
type: | ||
- string | ||
- "null" | ||
description: The player name | ||
rating: | ||
type: integer | ||
description: The player rating | ||
status: | ||
type: string | ||
description: The chapter status | ||
|
||
example: | ||
{ | ||
"chapters": [ | ||
{ | ||
"id": "iBjmYBya", | ||
"name": "test 2", | ||
"players": [ | ||
{ | ||
"name": "Carlsen, Magnus", | ||
"rating": 2837 | ||
}, | ||
{ | ||
"name": "Chadaev, Nikolay", | ||
"rating": 2580 | ||
} | ||
], | ||
"status": "1-0" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,25 @@ | ||
type: object | ||
|
||
properties: | ||
id: | ||
type: string | ||
description: The study ID | ||
name: | ||
type: string | ||
description: The study name | ||
createdAt: | ||
type: integer | ||
format: int64 | ||
description: The study creation date | ||
updatedAt: | ||
type: integer | ||
format: int64 | ||
description: The study last update date | ||
|
||
example: | ||
{ 'id': 'WTvnkWAL', 'name': 'Guess the move', 'createdAt': 1463756350225, 'updatedAt': 1469965025205 } | ||
{ | ||
"id": "WTvnkWAL", | ||
"name": "Guess the move", | ||
"createdAt": 1463756350225, | ||
"updatedAt": 1469965025205 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters