Skip to content

Commit

Permalink
[backend] Update dto upsert payload
Browse files Browse the repository at this point in the history
  • Loading branch information
savacano28 authored and RomuDeuxfois committed Oct 18, 2024
1 parent 971fd54 commit 404e245
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package io.openbas.rest.payload.form;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.openbas.database.model.Payload;
import io.openbas.database.model.PayloadArgument;
import io.openbas.database.model.PayloadPrerequisite;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

Expand All @@ -23,13 +25,13 @@ public class PayloadUpsertInput {
@JsonProperty("payload_name")
private String name;

@NotBlank(message = MANDATORY_MESSAGE)
@NotNull(message = MANDATORY_MESSAGE)
@JsonProperty("payload_source")
private String source;
private Payload.PAYLOAD_SOURCE source;

@NotBlank(message = MANDATORY_MESSAGE)
@NotNull(message = MANDATORY_MESSAGE)
@JsonProperty("payload_status")
private String status;
private Payload.PAYLOAD_STATUS status;

@NotBlank(message = MANDATORY_MESSAGE)
@JsonProperty("payload_external_id")
Expand Down

0 comments on commit 404e245

Please sign in to comment.