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

fix(openchallenges): synchronize OC microservices with the API description #2354

Merged
merged 6 commits into from
Nov 14, 2023
Merged
Changes from all 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
Original file line number Diff line number Diff line change
@@ -26,3 +26,4 @@ README.md
**/application.properties
**/model/dto/*AllOf*.java
**/OpenApiGeneratorApplication.java
**/OpenApiGeneratorApplicationTests.java
Original file line number Diff line number Diff line change
@@ -48,4 +48,3 @@ src/main/java/org/sagebionetworks/openchallenges/challenge/service/model/dto/Pag
src/main/java/org/sagebionetworks/openchallenges/challenge/service/model/dto/SimpleChallengeInputDataTypeDto.java
src/main/java/org/sagebionetworks/openchallenges/challenge/service/model/dto/SimpleChallengePlatformDto.java
src/main/resources/openapi.yaml
src/test/java/org/sagebionetworks/openchallenges/challenge/service/OpenApiGeneratorApplicationTests.java
Original file line number Diff line number Diff line change
@@ -121,7 +121,7 @@ public ChallengeDto slug(String slug) {
*/
@NotNull
@Pattern(regexp = "^[a-z0-9]+(?:-[a-z0-9]+)*$")
@Size(min = 3, max = 60)
@Size(min = 3, max = 255)
@Schema(
name = "slug",
example = "awesome-challenge",
@@ -146,7 +146,7 @@ public ChallengeDto name(String name) {
* @return name
*/
@NotNull
@Size(min = 3, max = 60)
@Size(min = 3, max = 255)
@Schema(name = "name", description = "The name of the challenge.", required = true)
public String getName() {
return name;
@@ -191,7 +191,7 @@ public ChallengeDto description(String description) {
* @return description
*/
@NotNull
@Size(min = 0, max = 280)
@Size(min = 0, max = 1000)
@Schema(
name = "description",
example = "This is an example description of the challenge.",
Original file line number Diff line number Diff line change
@@ -560,13 +560,13 @@ components:
ChallengeSlug:
description: The slug of the challenge.
example: awesome-challenge
maxLength: 60
maxLength: 255
minLength: 3
pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$"
type: string
ChallengeName:
description: The name of the challenge.
maxLength: 60
maxLength: 255
minLength: 3
type: string
ChallengeHeadline:
@@ -578,7 +578,7 @@ components:
ChallengeDescription:
description: The description of the challenge.
example: This is an example description of the challenge.
maxLength: 280
maxLength: 1000
minLength: 0
type: string
ChallengePlatformId:
@@ -721,13 +721,13 @@ components:
slug:
description: The slug of the challenge.
example: awesome-challenge
maxLength: 60
maxLength: 255
minLength: 3
pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$"
type: string
name:
description: The name of the challenge.
maxLength: 60
maxLength: 255
minLength: 3
type: string
headline:
@@ -739,7 +739,7 @@ components:
description:
description: The description of the challenge.
example: This is an example description of the challenge.
maxLength: 280
maxLength: 1000
minLength: 0
type: string
doi:
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class OpenApiGeneratorApplicationTests {
class ChallengeServiceApplicationTests {

@Test
void contextLoads() {}
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@
@Schema(name = "BasicError", description = "Problem details (tools.ietf.org/html/rfc7807)")
@JsonTypeName("BasicError")
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
@lombok.AllArgsConstructor
@lombok.Builder
public class BasicErrorDto {

Original file line number Diff line number Diff line change
@@ -369,6 +369,7 @@ components:
- title
type: object
x-java-class-annotations:
- '@lombok.AllArgsConstructor'
- '@lombok.Builder'
OrganizationsPage_allOf:
properties: