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

io.rocketbase.commons.dto.validation.ValidationResponse Maven / Gradle / Ivy

There is a newer version: 4.4.1
Show newest version
package io.rocketbase.commons.dto.validation;

import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import lombok.*;

import java.io.Serializable;
import java.util.Map;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, property = "@type")
@JsonSubTypes({
        @JsonSubTypes.Type(value = UsernameErrorCodes.class, name = "username"),
        @JsonSubTypes.Type(value = PasswordErrorCodes.class, name = "password"),
        @JsonSubTypes.Type(value = EmailErrorCodes.class, name = "email"),
        @JsonSubTypes.Type(value = TokenErrorCodes.class, name = "token")})
public class ValidationResponse implements Serializable {

    private boolean valid;

    @Singular
    private Map errorCodes;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy