Skip to content

Commit d40ca22

Browse files
authored
Add withConjureErrorParameterFormat option to WithClientOptions (#3192)
Add `withConjureErrorParameterFormat` option to `WithClientOptions`
1 parent 7bb936d commit d40ca22

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

.palantir/revapi.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,9 @@ acceptedBreaks:
7979
- code: "java.class.removed"
8080
old: "enum com.palantir.conjure.java.server.jersey.ErrorCause"
8181
justification: "ErrorCause is never used by consumers"
82+
"8.24.0":
83+
com.palantir.conjure.java.runtime:client-config:
84+
- code: "java.method.addedToInterface"
85+
new: "method T com.palantir.conjure.java.clients.ConjureClients.WithClientOptions<T>::withConjureErrorParameterFormat(com.palantir.conjure.java.api.errors.ConjureErrorParameterFormat)"
86+
justification: "Adding method to allow clients to request error parameter serialization\
87+
\ format"

client-config/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ apply plugin: 'org.revapi.revapi-gradle-plugin'
33

44
dependencies {
55
api 'com.palantir.conjure.java.api:service-config'
6+
api 'com.palantir.conjure.java.api:errors'
67
api 'com.palantir.tritium:tritium-registry'
78
api 'com.google.errorprone:error_prone_annotations'
89
api 'com.palantir.refreshable:refreshable'

client-config/src/main/java/com/palantir/conjure/java/clients/ConjureClients.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import com.palantir.conjure.java.api.config.service.ServiceConfiguration;
2121
import com.palantir.conjure.java.api.config.service.ServicesConfigBlock;
2222
import com.palantir.conjure.java.api.config.service.UserAgent;
23+
import com.palantir.conjure.java.api.errors.ConjureErrorParameterFormat;
2324
import com.palantir.conjure.java.client.config.ClientConfiguration;
2425
import com.palantir.conjure.java.client.config.HostEventsSink;
2526
import com.palantir.conjure.java.client.config.NodeSelectionStrategy;
@@ -88,6 +89,8 @@ public interface WithClientOptions<T> {
8889

8990
/** Per-host success/failure information will be recorded to this sink. */
9091
T withHostEventsSink(HostEventsSink hostEventsSink);
92+
93+
T withConjureErrorParameterFormat(ConjureErrorParameterFormat format);
9194
}
9295

9396
public interface ToReloadingFactory<U> {

0 commit comments

Comments
 (0)