Skip to content

Commit b57f9af

Browse files
committed
fix(client): correct ProblemDetail fallback URIs to customer-service namespace
1 parent 13a5492 commit b57f9af

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

customer-service-client/src/main/java/io/github/bsayli/openapi/client/adapter/support/ProblemDetailFallbacks.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,17 @@ final class ProblemDetailFallbacks {
2929
private static final String ERROR_CODE_UPSTREAM_STATUS_UNAVAILABLE =
3030
"UPSTREAM_STATUS_UNAVAILABLE";
3131

32-
private static final URI TYPE_NON_JSON = URI.create("urn:licensing:problem:upstream-non-json");
32+
private static final URI TYPE_NON_JSON =
33+
URI.create("urn:customer-service:problem:client-fallback-upstream-non-json");
34+
3335
private static final URI TYPE_UNPARSABLE =
34-
URI.create("urn:licensing:problem:upstream-unparsable");
35-
private static final URI TYPE_EMPTY = URI.create("urn:licensing:problem:upstream-empty");
36+
URI.create("urn:customer-service:problem:client-fallback-upstream-unparsable");
37+
38+
private static final URI TYPE_EMPTY =
39+
URI.create("urn:customer-service:problem:client-fallback-upstream-empty");
40+
3641
private static final URI TYPE_STATUS_UNAVAILABLE =
37-
URI.create("urn:licensing:problem:upstream-status-unavailable");
42+
URI.create("urn:customer-service:problem:client-fallback-upstream-status-unavailable");
3843

3944
private static final String ERROR_ITEM_RESOURCE_UPSTREAM = "upstream";
4045
private static final String ERROR_ITEM_FIELD_CONTENT_TYPE = "contentType";

0 commit comments

Comments
 (0)