Skip to content

Commit

Permalink
removed default empty string that causes validation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
musketyr committed Dec 12, 2023
1 parent 5c40612 commit 67bd302
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void setPathStyleAccessEnabled(Boolean forcePathStyle) {
}

@Size(min = 1)
private String bucket = "";
private String bucket;
private Boolean forcePathStyle;

}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import jakarta.validation.constraints.Size
@SuppressWarnings('AbstractClassWithoutAbstractMethod')
abstract class KinesisConfiguration extends DefaultRegionAndEndpointConfiguration {

@Size(min = 1) String stream = ''
@Size(min = 1) String stream

String consumerFilterKey = ''

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package com.agorapulse.micronaut.aws.s3

import com.agorapulse.micronaut.aws.DefaultRegionAndEndpointConfiguration
import groovy.transform.CompileStatic

import jakarta.validation.constraints.Size

/**
Expand All @@ -29,7 +28,7 @@ import jakarta.validation.constraints.Size
@SuppressWarnings('AbstractClassWithoutAbstractMethod')
abstract class SimpleStorageServiceConfiguration extends DefaultRegionAndEndpointConfiguration {

@Size(min = 1) String bucket = ''
@Size(min = 1) String bucket
Boolean pathStyleAccessEnabled

}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import java.time.Duration
* Tests for SimpleStorageService based on Testcontainers with Minio server.
*/
@Property(name = 'aws.s3.path-style-access-enabled', value = 'true')
@Property(name = 'aws.s3.bucket', value = MY_BUCKET)
class SimpleStorageServiceMinioSpec extends SimpleStorageServiceSpec implements TestPropertyProvider {

private static final int MINIO_PORT = 9000
Expand Down

0 comments on commit 67bd302

Please sign in to comment.