Skip to content

Commit ed80c81

Browse files
committed
concord-client2: add Concord-specific media type for validation errors
1 parent 31d786b commit ed80c81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

client2/src/main/template/libraries/native/api.mustache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ public class {{classname}} {
362362
{{/bodyParam}}
363363
String acceptHeaderValue = "{{#hasProduces}}{{#produces}}{{mediaType}}{{^-last}}, {{/-last}}{{/produces}}{{/hasProduces}}{{#hasProduces}}{{^produces}}application/json{{/produces}}{{/hasProduces}}{{^hasProduces}}application/json{{/hasProduces}}";
364364
acceptHeaderValue += ",application/vnd.siesta-validation-errors-v1+json";
365+
acceptHeaderValue += ",application/vnd.concord-validation-errors-v1+json";
365366
localVarRequestBuilder.header("Accept", acceptHeaderValue);
366367
{{#bodyParam}}
367368
{{#isString}}

0 commit comments

Comments
 (0)