Skip to content

Commit b23bfe0

Browse files
authored
Validerer at begrunnelse for varig endring matcher tillatt pattern (#317)
1 parent bd8660a commit b23bfe0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

soknad/src/main/java/no/nav/k9/søknad/felles/opptjening/SelvstendigNæringsdrivende.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ public static class SelvstendigNæringsdrivendePeriodeInfo {
184184
private LocalDate endringDato;
185185

186186
@JsonProperty("endringBegrunnelse")
187+
@Pattern(regexp = "^[\\p{Graph}\\p{Space}\\p{Sc}\\p{L}\\p{M}\\p{N}§]+$", message = "[${validatedValue}] matcher ikke tillatt pattern [{regexp}]")
187188
private String endringBegrunnelse;
188189

189190
@JsonProperty("bruttoInntekt")

0 commit comments

Comments
 (0)