Skip to content

Commit

Permalink
return empty fields in validation response
Browse files Browse the repository at this point in the history
  • Loading branch information
supriyapethkar authored and naponce committed Jun 29, 2020
1 parent ca908fd commit b40bac5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public Callable<VendorFieldsValidationResponse> validateFields(
public Callable<VendorFieldsValidationResponseV2> validateFields(
@RequestBody final VendorFieldsValidationRequestV2 vendorFieldsValidationRequest,
@RequestHeader(value = "AD-Tenant") final String partnerCode,
@RequestHeader(value = "Accept-Language") Locale locale) {
@RequestHeader(required = false, value = "Accept-Language") Locale locale) {

log.info(
"Calling validate fields API with " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
@Builder
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class ValidationFieldResponse {
private String inputCode;
private String messageKey;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
package com.appdirect.sdk.vendorFields.model.v2;

import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import com.fasterxml.jackson.annotation.JsonInclude;

@Data
@Builder
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class VendorFieldsValidationResponseV2 {
private int status;
private String code;
Expand Down

0 comments on commit b40bac5

Please sign in to comment.