Skip to content

Commit d544186

Browse files
authored
Merge pull request #67 from /issues/66
Add Nonnull annotation
2 parents d8f6060 + a15e5d4 commit d544186

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

hub/src/main/java/ch/iterate/hub/client/model/VaultDto.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
44
*
55
* The version of the OpenAPI document: 1.4.0-SNAPSHOT
6-
*
6+
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
99
* https://openapi-generator.tech
@@ -49,7 +49,7 @@
4949
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.11.0")
5050
public class VaultDto {
5151
public static final String JSON_PROPERTY_ID = "id";
52-
@javax.annotation.Nullable
52+
@javax.annotation.Nonnull
5353
private UUID id;
5454

5555
public static final String JSON_PROPERTY_NAME = "name";
@@ -96,10 +96,10 @@ public class VaultDto {
9696
@javax.annotation.Nullable
9797
private String authPrivateKey;
9898

99-
public VaultDto() {
99+
public VaultDto() {
100100
}
101101

102-
public VaultDto id(@javax.annotation.Nullable UUID id) {
102+
public VaultDto id(@javax.annotation.Nonnull UUID id) {
103103
this.id = id;
104104
return this;
105105
}
@@ -108,18 +108,18 @@ public VaultDto id(@javax.annotation.Nullable UUID id) {
108108
* Get id
109109
* @return id
110110
*/
111-
@javax.annotation.Nullable
111+
@javax.annotation.Nonnull
112112
@JsonProperty(JSON_PROPERTY_ID)
113-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
113+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
114114

115115
public UUID getId() {
116116
return id;
117117
}
118118

119119

120120
@JsonProperty(JSON_PROPERTY_ID)
121-
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
122-
public void setId(@javax.annotation.Nullable UUID id) {
121+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
122+
public void setId(@javax.annotation.Nonnull UUID id) {
123123
this.id = id;
124124
}
125125

hub/src/main/resources/openapi.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2808,6 +2808,7 @@
28082808
},
28092809
"VaultDto": {
28102810
"required": [
2811+
"id",
28112812
"name"
28122813
],
28132814
"type": "object",
@@ -2872,4 +2873,4 @@
28722873
}
28732874
}
28742875
}
2875-
}
2876+
}

0 commit comments

Comments
 (0)