Skip to content

Commit e4fffdf

Browse files
[GENERATE] Java classes from JSON Schema
1 parent 99b00a9 commit e4fffdf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

generated/java/datadoc-model/src/main/java/no/ssb/dapla/metadata/datadoc/UseRestriction.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
1717
import com.fasterxml.jackson.annotation.JsonValue;
1818
import jakarta.validation.Valid;
19+
import jakarta.validation.constraints.NotNull;
1920

2021
@JsonInclude(JsonInclude.Include.NON_NULL)
2122
@JsonPropertyOrder({
@@ -30,10 +31,12 @@ public class UseRestriction implements Serializable
3031
* Use restriction type
3132
* <p>
3233
* Use restriction type
34+
* (Required)
3335
*
3436
*/
3537
@JsonProperty("use_restriction_type")
3638
@JsonPropertyDescription("Use restriction type")
39+
@NotNull
3740
private UseRestriction.UseRestrictionType useRestrictionType;
3841
/**
3942
* Use restriction date
@@ -77,6 +80,7 @@ public static UseRestriction.UseRestrictionBuilderBase builder() {
7780
* Use restriction type
7881
* <p>
7982
* Use restriction type
83+
* (Required)
8084
*
8185
*/
8286
@JsonProperty("use_restriction_type")
@@ -88,6 +92,7 @@ public UseRestriction.UseRestrictionType getUseRestrictionType() {
8892
* Use restriction type
8993
* <p>
9094
* Use restriction type
95+
* (Required)
9196
*
9297
*/
9398
@JsonProperty("use_restriction_type")

0 commit comments

Comments
 (0)