Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(openchallenges): add new operation property to Challenge schema #2264

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ CREATE TABLE `challenge`
`difficulty` ENUM('good_for_beginners', 'intermediate', 'advanced'),
`platform_id` int,
`doi` varchar(80),
`operation` varchar(80),
vpchung marked this conversation as resolved.
Show resolved Hide resolved
`start_date` DATE,
`end_date` DATE,
-- `email` varchar(255) DEFAULT NULL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,12 @@ components:
minLength: 0
maxLength: 280
example: This is an example description of the challenge.
ChallengeOperation:
description: The EDAM operation class of the challenge.
type: string
maxLength: 80
pattern: ^$|^operation_\d+$
example: operation_0004
ChallengePlatformId:
description: The unique identifier of a challenge platform.
type: integer
Expand Down Expand Up @@ -473,6 +479,8 @@ components:
$ref: '#/components/schemas/ChallengeDescription'
doi:
type: string
operation:
$ref: '#/components/schemas/ChallengeOperation'
status:
$ref: '#/components/schemas/ChallengeStatus'
difficulty:
Expand Down
8 changes: 8 additions & 0 deletions libs/openchallenges/api-description/build/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,12 @@ components:
minLength: 0
maxLength: 280
example: This is an example description of the challenge.
ChallengeOperation:
description: The EDAM operation class of the challenge.
type: string
maxLength: 80
pattern: ^$|^operation_\d+$
example: operation_0004
ChallengePlatformId:
description: The unique identifier of a challenge platform.
type: integer
Expand Down Expand Up @@ -625,6 +631,8 @@ components:
$ref: '#/components/schemas/ChallengeDescription'
doi:
type: string
operation:
$ref: '#/components/schemas/ChallengeOperation'
status:
$ref: '#/components/schemas/ChallengeStatus'
difficulty:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ properties:
$ref: ChallengeDescription.yaml
doi:
type: string
operation:
$ref: ChallengeOperation.yaml
status:
$ref: ChallengeStatus.yaml
difficulty:
Expand Down
vpchung marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
description: The EDAM operation class of the challenge.
type: string
maxLength: 80
vpchung marked this conversation as resolved.
Show resolved Hide resolved
pattern: '^$|^operation_\d+$'
example: operation_0004