refactored to make use of the ServiceType enum throughout backend and frontend for typesafety
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
package com.vaessl.app.search;
|
||||
|
||||
import com.vaessl.app.connection.ServiceType;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
|
||||
public record SearchRequest(@NotBlank String appUrl, @NotBlank String username, String query,
|
||||
@NotBlank String serviceType) {
|
||||
@NotNull ServiceType serviceType) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user