Skip to content

Commit 2c96aa5

Browse files
committed
feat: code challenge schema required fields
1 parent 784c583 commit 2c96aa5

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

openapi/components/schemas/CodeChallenge.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
type: object
2+
required:
3+
- id
4+
- name
5+
- slug
6+
- category
7+
- description
8+
- tags
9+
- languages
10+
- rank
11+
- createdBy
12+
- createdAt
13+
- totalCompleted
14+
- totalAttempts
15+
- totalStars
16+
- voteScore
17+
- contributorsWanted
18+
- unresolved
219
properties:
320
id:
421
type: string
@@ -45,6 +62,7 @@ properties:
4562
$ref: ./CodeChallengeContributor.yaml
4663
approvedAt:
4764
type: string
65+
nullable: true
4866
description: Date and time when the kata was approved.
4967
totalCompleted:
5068
type: integer

openapi/components/schemas/CodeChallengeContributor.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
type: object
2+
required:
3+
- username
4+
- url
25
description: The author of the kata.
36
properties:
47
username:

openapi/components/schemas/CodeChallengeStatistics.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
type: object
2+
required:
3+
- issues
4+
- suggestions
25
description: Object with fields issues and suggestions.
36
properties:
47
issues:

0 commit comments

Comments
 (0)