Skip to content

Commit

Permalink
Add JsonViews.
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilian Chrzan <[email protected]>
Signed-off-by: mchrza <[email protected]>
  • Loading branch information
mchrza committed Oct 24, 2024
1 parent 622e65a commit aedfab2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ public Map withVersionRef(Ref versionRef) {

@JsonIgnoreProperties(ignoreUnknown = true)
public static class Space<T extends Space> extends Identifiable<T> implements FilteringSource<T>, VersionedSource<T> {
@JsonView({Public.class})
@JsonView({Public.class, Static.class})
private Filters filters;
@JsonView({Public.class})
@JsonView({Public.class, Static.class})
private Ref versionRef;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

package com.here.xyz.jobs.datasets;

import com.fasterxml.jackson.annotation.JsonView;
import com.here.xyz.jobs.datasets.DatasetDescription.Space;
import com.here.xyz.jobs.datasets.filters.FilteringSource;
import com.here.xyz.jobs.datasets.filters.Filters;
Expand All @@ -28,6 +29,8 @@
public class Spaces<T extends Spaces> extends DatasetDescription implements FilteringSource<T>, CombinedDatasetDescription<Space> {

private List<String> spaceIds;

@JsonView({Public.class, Static.class})
private Filters filters;

public List<String> getSpaceIds() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class Filters {
@JsonView({Internal.class, Static.class})
private String propertyFilterAsString;

@JsonView({Public.class})
@JsonView({Public.class, Static.class})
private SpatialFilter spatialFilter;

@JsonView({Public.class, Static.class})
Expand Down

0 comments on commit aedfab2

Please sign in to comment.