Skip to content
Merged
Show file tree
Hide file tree
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
Expand Up @@ -28,6 +28,7 @@
* <p>
* Used in Swagger schema generation for chart axis descriptions.
*/
@Schema(description = "Domain of values supported on a categorical chart axis.")
public class AxisDomainCategorical implements AxisDomain {

private final @NonNull Set<String> categories;
Expand All @@ -46,9 +47,9 @@ public AxisDomainCategorical(
}

@Override
@Schema(description = "Type of axis domain", requiredMode = RequiredMode.REQUIRED)
@Schema(description = "Type of axis domain: 'categorical'", requiredMode = RequiredMode.REQUIRED)
public String getType() {
return "categorical";
return "categorical"; //$NON-NLS-1$
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* <p>
* Used in Swagger schema generation for chart axis descriptions.
*/
@Schema(description = "Domain of values supported on a numberical range chart axis.")
public class AxisDomainRange implements AxisDomain {

private final long start;
Expand All @@ -45,9 +46,9 @@ public AxisDomainRange(
}

@Override
@Schema(description = "Type of axis domain", requiredMode = RequiredMode.REQUIRED)
@Schema(description = "Type of axis domain: 'range'", requiredMode = RequiredMode.REQUIRED)
public String getType() {
return "range";
return "range"; //$NON-NLS-1$
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public interface XYAxisDescription {
* @return Optional domain of values that this axis can take.
*/
@JsonProperty("axisDomain")
@Schema(description = "Optional domain of values that this axis supports", requiredMode = RequiredMode.NOT_REQUIRED)
@Nullable AxisDomain getAxisDomain();
@Schema(description = "Optional domain of values that this axis supports", requiredMode = RequiredMode.NOT_REQUIRED, oneOf = {
AxisDomainCategorical.class,
AxisDomainRange.class
})
@Nullable Object getAxisDomain();
}
Loading