Skip to content

Commit

Permalink
fixing openapi
Browse files Browse the repository at this point in the history
  • Loading branch information
LuciaM1 committed Jul 16, 2024
1 parent 213d115 commit d03da68
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserProfileAllDto {
@Schema(example = "[email protected]", maxLength = 255)
@Schema(example = "[email protected]", format = "byte", maxLength = 255)
private String userId;
private UserProfileEnum profile;
@Schema(example = "{\"date\":\"2023-11-03T14:18:36.635+00:00\"}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class UserProfileCreationDto {

@NotNull(message = "is required")
@Email(message = "must be an email address in the correct format")
@Schema(required = true, example = "[email protected]", maxLength = 255)
@Schema(required = true, example = "[email protected]", format="byte", maxLength = 255)
private String userId;
@NotNull(message = "is required")
@Schema(required = true, description = "1 = GUEST, 2 = OPERATOR, 3 = ADMIN", minimum = "1", maximum = "10")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserProfileDto {
@Schema(example = "[email protected]", maxLength = 255)
@Schema(example = "[email protected]", format = "byte", maxLength = 255)
private String userId;
private UserProfileEnum profile;
private Boolean visible;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,15 @@
@Jacksonized
@JsonPropertyOrder({"name", "version", "environment", "description"})
public class InfoResponse {
@Schema(example = "atm-layer-model")
@Size(max = 255)
@Schema(example = "atm-layer-model", format = "byte", maxLength = 255)
private String name;

@Schema(example = "1.2.3")
@Size(max = 255)
@Schema(example = "1.2.3", format = "byte", maxLength = 255)
private String version;

@Schema(example = "dev")
@Size(max = 255)
@Schema(example = "dev", format = "byte", maxLength = 255)
private String environment;

@Schema(example = "ATM Layer - Model Service")
@Size(max = 255)
@Schema(example = "ATM Layer - Model Service", format = "byte", maxLength = 255)
private String description;
}
1 change: 0 additions & 1 deletion src/main/resources/application-local.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ quarkus.datasource.reactive.url=${MODEL_DB_URL:postgresql://localhost:5433/postg
quarkus.hibernate-orm.database.generation=${MODEL_DB_SCHEMA_UPDATE_TYPE:none}
quarkus.log.console.json=false
quarkus.console.color=true
quarkus.smallrye-openapi.auto-add-server=true
quarkus.s3.endpoint-override=http://127.0.0.1:9999
quarkus.s3.aws.credentials.type=static
quarkus.s3.aws.credentials.static-provider.access-key-id=${OBJECT_STORE_ACCESS_KEY_ID:admin123}
Expand Down

0 comments on commit d03da68

Please sign in to comment.