Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit 7e598ec

Browse files
committed
Samples regen
1 parent b51eb63 commit 7e598ec

File tree

6 files changed

+18
-0
lines changed

6 files changed

+18
-0
lines changed

samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/fakemultiplesecurities/get/FakemultiplesecuritiesGetSecurityInfo.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ public Securities(
4747
if (security2 != null) {
4848
securities.put(SecurityIndex.SECURITY_2, security2);
4949
}
50+
if (securities.isEmpty()) {
51+
throw new RuntimeException("Invalid empty input for securities, set at least one of them;");
52+
}
5053
}
5154

5255
public SecurityRequirementObject get(SecurityIndex securityIndex) {

samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/post/PetPostSecurityInfo.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ public Securities(
4747
if (security2 != null) {
4848
securities.put(SecurityIndex.SECURITY_2, security2);
4949
}
50+
if (securities.isEmpty()) {
51+
throw new RuntimeException("Invalid empty input for securities, set at least one of them;");
52+
}
5053
}
5154

5255
public SecurityRequirementObject get(SecurityIndex securityIndex) {

samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/pet/put/PetPutSecurityInfo.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ public Securities(
3939
if (security1 != null) {
4040
securities.put(SecurityIndex.SECURITY_1, security1);
4141
}
42+
if (securities.isEmpty()) {
43+
throw new RuntimeException("Invalid empty input for securities, set at least one of them;");
44+
}
4245
}
4346

4447
public SecurityRequirementObject get(SecurityIndex securityIndex) {

samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petfindbystatus/get/PetfindbystatusGetSecurityInfo.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ public Securities(
4747
if (security2 != null) {
4848
securities.put(SecurityIndex.SECURITY_2, security2);
4949
}
50+
if (securities.isEmpty()) {
51+
throw new RuntimeException("Invalid empty input for securities, set at least one of them;");
52+
}
5053
}
5154

5255
public SecurityRequirementObject get(SecurityIndex securityIndex) {

samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/delete/PetpetidDeleteSecurityInfo.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ public Securities(
3939
if (security1 != null) {
4040
securities.put(SecurityIndex.SECURITY_1, security1);
4141
}
42+
if (securities.isEmpty()) {
43+
throw new RuntimeException("Invalid empty input for securities, set at least one of them;");
44+
}
4245
}
4346

4447
public SecurityRequirementObject get(SecurityIndex securityIndex) {

samples/client/petstore/java/src/main/java/org/openapijsonschematools/client/paths/petpetid/post/PetpetidPostSecurityInfo.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ public Securities(
3939
if (security1 != null) {
4040
securities.put(SecurityIndex.SECURITY_1, security1);
4141
}
42+
if (securities.isEmpty()) {
43+
throw new RuntimeException("Invalid empty input for securities, set at least one of them;");
44+
}
4245
}
4346

4447
public SecurityRequirementObject get(SecurityIndex securityIndex) {

0 commit comments

Comments
 (0)