java/api/src/main/java/com/exadel/frs/core/trainservice/dto/SubjectDto.java
package com.exadel.frs.core.trainservice.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

import static com.exadel.frs.core.trainservice.system.global.Constants.SUBJECT_DESC;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SubjectDto {

    @ApiParam(value = SUBJECT_DESC, required = true)
    @JsonProperty("subject")
    @NotBlank(message = "Subject name is empty")
    private String subjectName;
}
