Skip to content

Commit 21c37d0

Browse files
authored
chore: remove pdf-exporter from REST API schema examples (#236)
1 parent 460f9c8 commit 21c37d0

File tree

1 file changed

+5
-4
lines changed
  • app/src/main/java/ch/sbb/polarion/extension/generic/rest/model

1 file changed

+5
-4
lines changed

app/src/main/java/ch/sbb/polarion/extension/generic/rest/model/Context.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@
33
import io.swagger.v3.oas.annotations.media.Schema;
44
import lombok.Getter;
55
import org.jetbrains.annotations.NotNull;
6+
import org.jetbrains.annotations.Nullable;
67

78
@Getter
89
@Schema(description = "Represents the context for building URLs related to Polarion services")
910
public class Context {
1011

11-
@Schema(description = "The extension context used as a base for URL construction", example = "pdf-exporter")
12+
@Schema(description = "The extension context used as a base for URL construction")
1213
private final @NotNull String extensionContext;
1314

14-
@Schema(description = "Returns the base URL constructed with the extension context", example = "/polarion/pdf-exporter")
15+
@Schema(description = "Returns the base URL constructed with the extension context")
1516
public @NotNull String getBaseUrl() {
1617
return "/polarion/" + extensionContext;
1718
}
1819

19-
@Schema(description = "Returns the REST API URL constructed with the extension context", example = "/polarion/pdf-exporter/rest")
20+
@Schema(description = "Returns the REST API URL constructed with the extension context")
2021
public @NotNull String getRestUrl() {
2122
return "/polarion/" + extensionContext + "/rest";
2223
}
@@ -26,7 +27,7 @@ public class Context {
2627
return getRestUrl() + "/swagger";
2728
}
2829

29-
public Context(String extensionContext) {
30+
public Context(@Nullable String extensionContext) {
3031
if (extensionContext == null || extensionContext.isBlank()) {
3132
throw new IllegalArgumentException("Extension context must be provided");
3233
}

0 commit comments

Comments
 (0)