All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.mosip.pms.common.response.dto.ValidateResponseWrapper Maven / Gradle / Ivy

There is a newer version: 1.3.0-dp.1
Show newest version
package io.mosip.pms.common.response.dto;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.ArrayList;
import java.util.List;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.mosip.pms.common.request.dto.ErrorResponse;
import lombok.Data;


/**
 * @author sanjeev.shrivastava
 *
 * @param  any type of object as a parameter
 */

@Data
public class ValidateResponseWrapper {
	private String id;
	private String version;
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
	private LocalDateTime responsetime = LocalDateTime.now(ZoneId.of("UTC"));
	private Object metadata;
	@NotNull
	@Valid
	private T response;

	private List errors = new ArrayList<>();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy