Skip to content

Commit

Permalink
fix: replace deprecated usages
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlkoch authored and mholthausen committed Jun 1, 2023
1 parent 75d3ae9 commit f9b64e1
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class Application extends BaseEntity {
@Column
@Schema(
description = "The name of the application.",
required = true,
requiredMode = Schema.RequiredMode.REQUIRED,
example = "My SHOGun application"
)
private String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ public abstract class BaseEntity implements Serializable {
@Getter
@Schema(
description = "The ID of the entity.",
accessMode = Schema.AccessMode.READ_ONLY,
readOnly = true
accessMode = Schema.AccessMode.READ_ONLY
)
private Long id;

Expand All @@ -61,8 +60,7 @@ public abstract class BaseEntity implements Serializable {
@Getter @Setter
@Schema(
description = "The timestamp of creation.",
accessMode = Schema.AccessMode.READ_ONLY,
readOnly = true
accessMode = Schema.AccessMode.READ_ONLY
)
private OffsetDateTime created;

Expand All @@ -71,8 +69,7 @@ public abstract class BaseEntity implements Serializable {
@Getter @Setter
@Schema(
description = "The timestamp of the last modification.",
accessMode = Schema.AccessMode.READ_ONLY,
readOnly = true
accessMode = Schema.AccessMode.READ_ONLY
)
private OffsetDateTime modified;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class Layer extends BaseEntity {
@Schema(
description = "The configuration of the datasource of the layer, e.g. the URL of the server, the name or " +
"the grid configuration.",
required = true
requiredMode = Schema.RequiredMode.REQUIRED
)
private LayerSourceConfig sourceConfig;

Expand All @@ -89,7 +89,7 @@ public class Layer extends BaseEntity {
@Enumerated(EnumType.STRING)
@Schema(
description = "The type of the layer. Currently one of `TileWMS`, `VectorTile`, `WFS`, `WMS`, `WMTS` or `XYZ`.",
required = true
requiredMode = Schema.RequiredMode.REQUIRED
)
private LayerType type;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class User<T> extends BaseEntity {
@Column(unique = true, nullable = false)
@Schema(
description = "The backend ID of the user.",
required = true
requiredMode = Schema.RequiredMode.REQUIRED
)
private String authProviderId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class DefaultApplicationClientConfig implements ApplicationClientConfig {

@Schema(
description = "The configuration of the map view.",
required = true
requiredMode = Schema.RequiredMode.REQUIRED
)
private DefaultMapView mapView;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class DefaultApplicationLayerConfig implements LayerConfig {

@Schema(
description = "The ID of the layer to apply the custom configuration to.",
required = true
requiredMode = Schema.RequiredMode.REQUIRED
)
private Integer layerId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class DefaultApplicationToolConfig implements ApplicationToolConfig {
@Schema(
description = "The name of the tool.",
example = "map-tool",
required = true
requiredMode = Schema.RequiredMode.REQUIRED
)
private String name;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public class DefaultLayerPropertyConfig implements Serializable {

@Schema(
description = "The name of the property.",
example = "description",
required = true
example = "desc",
requiredMode = Schema.RequiredMode.REQUIRED
)
private String propertyName;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class DownloadConfig implements Serializable {
@Schema(
description = "URL which allows to download the layer data.",
example = "https://example.com/geoserver/SHOGUN/ows?service=WFS&version=1.0.0&request=GetFeature&outputFormat=application%2Fjson",
required = true
requiredMode = Schema.RequiredMode.REQUIRED
)
private String downloadUrl;

Expand Down

0 comments on commit f9b64e1

Please sign in to comment.