mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-20 00:27:04 +00:00
Issue 20804: Add java nullability annotations (#20806)
* issue-20804: Add nullability annotations to Java generated clients Motivation: Be able to use generated clients in code checked by tools like NullAway. * issue-20804: Add nullability annotations to Java generated clients Motivation: Be able to use generated clients in code checked by tools like NullAway. * issue-20804: Add nullability annotations to Java generated clients Motivation: Be able to use generated clients in code checked by tools like NullAway.
This commit is contained in:
@@ -55,7 +55,7 @@ public interface BodyApi extends ApiClient.Api {
|
||||
"Content-Type: application/octet-stream",
|
||||
"Accept: text/plain",
|
||||
})
|
||||
String testBodyApplicationOctetstreamBinary(File body);
|
||||
String testBodyApplicationOctetstreamBinary(@javax.annotation.Nullable File body);
|
||||
|
||||
/**
|
||||
* Test body parameter(s)
|
||||
@@ -69,7 +69,7 @@ public interface BodyApi extends ApiClient.Api {
|
||||
"Content-Type: application/octet-stream",
|
||||
"Accept: text/plain",
|
||||
})
|
||||
ApiResponse<String> testBodyApplicationOctetstreamBinaryWithHttpInfo(File body);
|
||||
ApiResponse<String> testBodyApplicationOctetstreamBinaryWithHttpInfo(@javax.annotation.Nullable File body);
|
||||
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ public interface BodyApi extends ApiClient.Api {
|
||||
"Content-Type: multipart/form-data",
|
||||
"Accept: text/plain",
|
||||
})
|
||||
String testBodyMultipartFormdataArrayOfBinary(@Param("files") List<File> files);
|
||||
String testBodyMultipartFormdataArrayOfBinary(@Param("files") @javax.annotation.Nonnull List<File> files);
|
||||
|
||||
/**
|
||||
* Test array of binary in multipart mime
|
||||
@@ -98,7 +98,7 @@ public interface BodyApi extends ApiClient.Api {
|
||||
"Content-Type: multipart/form-data",
|
||||
"Accept: text/plain",
|
||||
})
|
||||
ApiResponse<String> testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(@Param("files") List<File> files);
|
||||
ApiResponse<String> testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(@Param("files") @javax.annotation.Nonnull List<File> files);
|
||||
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ public interface BodyApi extends ApiClient.Api {
|
||||
"Content-Type: multipart/form-data",
|
||||
"Accept: text/plain",
|
||||
})
|
||||
String testBodyMultipartFormdataSingleBinary(@Param("my-file") File myFile);
|
||||
String testBodyMultipartFormdataSingleBinary(@Param("my-file") @javax.annotation.Nullable File myFile);
|
||||
|
||||
/**
|
||||
* Test single binary in multipart mime
|
||||
@@ -127,7 +127,7 @@ public interface BodyApi extends ApiClient.Api {
|
||||
"Content-Type: multipart/form-data",
|
||||
"Accept: text/plain",
|
||||
})
|
||||
ApiResponse<String> testBodyMultipartFormdataSingleBinaryWithHttpInfo(@Param("my-file") File myFile);
|
||||
ApiResponse<String> testBodyMultipartFormdataSingleBinaryWithHttpInfo(@Param("my-file") @javax.annotation.Nullable File myFile);
|
||||
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@ public interface BodyApi extends ApiClient.Api {
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
Pet testEchoBodyAllOfPet(Pet pet);
|
||||
Pet testEchoBodyAllOfPet(@javax.annotation.Nullable Pet pet);
|
||||
|
||||
/**
|
||||
* Test body parameter(s)
|
||||
@@ -156,7 +156,7 @@ public interface BodyApi extends ApiClient.Api {
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
ApiResponse<Pet> testEchoBodyAllOfPetWithHttpInfo(Pet pet);
|
||||
ApiResponse<Pet> testEchoBodyAllOfPetWithHttpInfo(@javax.annotation.Nullable Pet pet);
|
||||
|
||||
|
||||
|
||||
@@ -171,7 +171,7 @@ public interface BodyApi extends ApiClient.Api {
|
||||
"Content-Type: application/json",
|
||||
"Accept: text/plain",
|
||||
})
|
||||
String testEchoBodyFreeFormObjectResponseString(Object body);
|
||||
String testEchoBodyFreeFormObjectResponseString(@javax.annotation.Nullable Object body);
|
||||
|
||||
/**
|
||||
* Test free form object
|
||||
@@ -185,7 +185,7 @@ public interface BodyApi extends ApiClient.Api {
|
||||
"Content-Type: application/json",
|
||||
"Accept: text/plain",
|
||||
})
|
||||
ApiResponse<String> testEchoBodyFreeFormObjectResponseStringWithHttpInfo(Object body);
|
||||
ApiResponse<String> testEchoBodyFreeFormObjectResponseStringWithHttpInfo(@javax.annotation.Nullable Object body);
|
||||
|
||||
|
||||
|
||||
@@ -200,7 +200,7 @@ public interface BodyApi extends ApiClient.Api {
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
Pet testEchoBodyPet(Pet pet);
|
||||
Pet testEchoBodyPet(@javax.annotation.Nullable Pet pet);
|
||||
|
||||
/**
|
||||
* Test body parameter(s)
|
||||
@@ -214,7 +214,7 @@ public interface BodyApi extends ApiClient.Api {
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
ApiResponse<Pet> testEchoBodyPetWithHttpInfo(Pet pet);
|
||||
ApiResponse<Pet> testEchoBodyPetWithHttpInfo(@javax.annotation.Nullable Pet pet);
|
||||
|
||||
|
||||
|
||||
@@ -229,7 +229,7 @@ public interface BodyApi extends ApiClient.Api {
|
||||
"Content-Type: application/json",
|
||||
"Accept: text/plain",
|
||||
})
|
||||
String testEchoBodyPetResponseString(Pet pet);
|
||||
String testEchoBodyPetResponseString(@javax.annotation.Nullable Pet pet);
|
||||
|
||||
/**
|
||||
* Test empty response body
|
||||
@@ -243,7 +243,7 @@ public interface BodyApi extends ApiClient.Api {
|
||||
"Content-Type: application/json",
|
||||
"Accept: text/plain",
|
||||
})
|
||||
ApiResponse<String> testEchoBodyPetResponseStringWithHttpInfo(Pet pet);
|
||||
ApiResponse<String> testEchoBodyPetResponseStringWithHttpInfo(@javax.annotation.Nullable Pet pet);
|
||||
|
||||
|
||||
|
||||
@@ -258,7 +258,7 @@ public interface BodyApi extends ApiClient.Api {
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
StringEnumRef testEchoBodyStringEnum(String body);
|
||||
StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String body);
|
||||
|
||||
/**
|
||||
* Test string enum response body
|
||||
@@ -272,7 +272,7 @@ public interface BodyApi extends ApiClient.Api {
|
||||
"Content-Type: application/json",
|
||||
"Accept: application/json",
|
||||
})
|
||||
ApiResponse<StringEnumRef> testEchoBodyStringEnumWithHttpInfo(String body);
|
||||
ApiResponse<StringEnumRef> testEchoBodyStringEnumWithHttpInfo(@javax.annotation.Nullable String body);
|
||||
|
||||
|
||||
|
||||
@@ -287,7 +287,7 @@ public interface BodyApi extends ApiClient.Api {
|
||||
"Content-Type: application/json",
|
||||
"Accept: text/plain",
|
||||
})
|
||||
String testEchoBodyTagResponseString(Tag tag);
|
||||
String testEchoBodyTagResponseString(@javax.annotation.Nullable Tag tag);
|
||||
|
||||
/**
|
||||
* Test empty json (request body)
|
||||
@@ -301,7 +301,7 @@ public interface BodyApi extends ApiClient.Api {
|
||||
"Content-Type: application/json",
|
||||
"Accept: text/plain",
|
||||
})
|
||||
ApiResponse<String> testEchoBodyTagResponseStringWithHttpInfo(Tag tag);
|
||||
ApiResponse<String> testEchoBodyTagResponseStringWithHttpInfo(@javax.annotation.Nullable Tag tag);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ public interface FormApi extends ApiClient.Api {
|
||||
"Content-Type: application/x-www-form-urlencoded",
|
||||
"Accept: text/plain",
|
||||
})
|
||||
String testFormIntegerBooleanString(@Param("integer_form") Integer integerForm, @Param("boolean_form") Boolean booleanForm, @Param("string_form") String stringForm);
|
||||
String testFormIntegerBooleanString(@Param("integer_form") @javax.annotation.Nullable Integer integerForm, @Param("boolean_form") @javax.annotation.Nullable Boolean booleanForm, @Param("string_form") @javax.annotation.Nullable String stringForm);
|
||||
|
||||
/**
|
||||
* Test form parameter(s)
|
||||
@@ -45,7 +45,7 @@ public interface FormApi extends ApiClient.Api {
|
||||
"Content-Type: application/x-www-form-urlencoded",
|
||||
"Accept: text/plain",
|
||||
})
|
||||
ApiResponse<String> testFormIntegerBooleanStringWithHttpInfo(@Param("integer_form") Integer integerForm, @Param("boolean_form") Boolean booleanForm, @Param("string_form") String stringForm);
|
||||
ApiResponse<String> testFormIntegerBooleanStringWithHttpInfo(@Param("integer_form") @javax.annotation.Nullable Integer integerForm, @Param("boolean_form") @javax.annotation.Nullable Boolean booleanForm, @Param("string_form") @javax.annotation.Nullable String stringForm);
|
||||
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ public interface FormApi extends ApiClient.Api {
|
||||
"Content-Type: multipart/form-data",
|
||||
"Accept: text/plain",
|
||||
})
|
||||
String testFormObjectMultipart(@Param("marker") TestFormObjectMultipartRequestMarker marker);
|
||||
String testFormObjectMultipart(@Param("marker") @javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker);
|
||||
|
||||
/**
|
||||
* Test form parameter(s) for multipart schema
|
||||
@@ -74,7 +74,7 @@ public interface FormApi extends ApiClient.Api {
|
||||
"Content-Type: multipart/form-data",
|
||||
"Accept: text/plain",
|
||||
})
|
||||
ApiResponse<String> testFormObjectMultipartWithHttpInfo(@Param("marker") TestFormObjectMultipartRequestMarker marker);
|
||||
ApiResponse<String> testFormObjectMultipartWithHttpInfo(@Param("marker") @javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker);
|
||||
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ public interface FormApi extends ApiClient.Api {
|
||||
"Content-Type: application/x-www-form-urlencoded",
|
||||
"Accept: text/plain",
|
||||
})
|
||||
String testFormOneof(@Param("form1") String form1, @Param("form2") Integer form2, @Param("form3") String form3, @Param("form4") Boolean form4, @Param("id") Long id, @Param("name") String name);
|
||||
String testFormOneof(@Param("form1") @javax.annotation.Nullable String form1, @Param("form2") @javax.annotation.Nullable Integer form2, @Param("form3") @javax.annotation.Nullable String form3, @Param("form4") @javax.annotation.Nullable Boolean form4, @Param("id") @javax.annotation.Nullable Long id, @Param("name") @javax.annotation.Nullable String name);
|
||||
|
||||
/**
|
||||
* Test form parameter(s) for oneOf schema
|
||||
@@ -113,7 +113,7 @@ public interface FormApi extends ApiClient.Api {
|
||||
"Content-Type: application/x-www-form-urlencoded",
|
||||
"Accept: text/plain",
|
||||
})
|
||||
ApiResponse<String> testFormOneofWithHttpInfo(@Param("form1") String form1, @Param("form2") Integer form2, @Param("form3") String form3, @Param("form4") Boolean form4, @Param("id") Long id, @Param("name") String name);
|
||||
ApiResponse<String> testFormOneofWithHttpInfo(@Param("form1") @javax.annotation.Nullable String form1, @Param("form2") @javax.annotation.Nullable Integer form2, @Param("form3") @javax.annotation.Nullable String form3, @Param("form4") @javax.annotation.Nullable Boolean form4, @Param("id") @javax.annotation.Nullable Long id, @Param("name") @javax.annotation.Nullable String name);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ public interface HeaderApi extends ApiClient.Api {
|
||||
|
||||
"enum_ref_string_header: {enumRefStringHeader}"
|
||||
})
|
||||
String testHeaderIntegerBooleanStringEnums(@Param("integerHeader") Integer integerHeader, @Param("booleanHeader") Boolean booleanHeader, @Param("stringHeader") String stringHeader, @Param("enumNonrefStringHeader") String enumNonrefStringHeader, @Param("enumRefStringHeader") StringEnumRef enumRefStringHeader);
|
||||
String testHeaderIntegerBooleanStringEnums(@Param("integerHeader") @javax.annotation.Nullable Integer integerHeader, @Param("booleanHeader") @javax.annotation.Nullable Boolean booleanHeader, @Param("stringHeader") @javax.annotation.Nullable String stringHeader, @Param("enumNonrefStringHeader") @javax.annotation.Nullable String enumNonrefStringHeader, @Param("enumRefStringHeader") @javax.annotation.Nullable StringEnumRef enumRefStringHeader);
|
||||
|
||||
/**
|
||||
* Test header parameter(s)
|
||||
@@ -65,7 +65,7 @@ public interface HeaderApi extends ApiClient.Api {
|
||||
|
||||
"enum_ref_string_header: {enumRefStringHeader}"
|
||||
})
|
||||
ApiResponse<String> testHeaderIntegerBooleanStringEnumsWithHttpInfo(@Param("integerHeader") Integer integerHeader, @Param("booleanHeader") Boolean booleanHeader, @Param("stringHeader") String stringHeader, @Param("enumNonrefStringHeader") String enumNonrefStringHeader, @Param("enumRefStringHeader") StringEnumRef enumRefStringHeader);
|
||||
ApiResponse<String> testHeaderIntegerBooleanStringEnumsWithHttpInfo(@Param("integerHeader") @javax.annotation.Nullable Integer integerHeader, @Param("booleanHeader") @javax.annotation.Nullable Boolean booleanHeader, @Param("stringHeader") @javax.annotation.Nullable String stringHeader, @Param("enumNonrefStringHeader") @javax.annotation.Nullable String enumNonrefStringHeader, @Param("enumRefStringHeader") @javax.annotation.Nullable StringEnumRef enumRefStringHeader);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ public interface PathApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(@Param("pathString") String pathString, @Param("pathInteger") Integer pathInteger, @Param("enumNonrefStringPath") String enumNonrefStringPath, @Param("enumRefStringPath") StringEnumRef enumRefStringPath);
|
||||
String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(@Param("pathString") @javax.annotation.Nonnull String pathString, @Param("pathInteger") @javax.annotation.Nonnull Integer pathInteger, @Param("enumNonrefStringPath") @javax.annotation.Nonnull String enumNonrefStringPath, @Param("enumRefStringPath") @javax.annotation.Nonnull StringEnumRef enumRefStringPath);
|
||||
|
||||
/**
|
||||
* Test path parameter(s)
|
||||
@@ -45,7 +45,7 @@ public interface PathApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
ApiResponse<String> testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(@Param("pathString") String pathString, @Param("pathInteger") Integer pathInteger, @Param("enumNonrefStringPath") String enumNonrefStringPath, @Param("enumRefStringPath") StringEnumRef enumRefStringPath);
|
||||
ApiResponse<String> testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(@Param("pathString") @javax.annotation.Nonnull String pathString, @Param("pathInteger") @javax.annotation.Nonnull Integer pathInteger, @Param("enumNonrefStringPath") @javax.annotation.Nonnull String enumNonrefStringPath, @Param("enumRefStringPath") @javax.annotation.Nonnull StringEnumRef enumRefStringPath);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
String testEnumRefString(@Param("enumNonrefStringQuery") String enumNonrefStringQuery, @Param("enumRefStringQuery") StringEnumRef enumRefStringQuery);
|
||||
String testEnumRefString(@Param("enumNonrefStringQuery") @javax.annotation.Nullable String enumNonrefStringQuery, @Param("enumRefStringQuery") @javax.annotation.Nullable StringEnumRef enumRefStringQuery);
|
||||
|
||||
/**
|
||||
* Test query parameter(s)
|
||||
@@ -47,7 +47,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
ApiResponse<String> testEnumRefStringWithHttpInfo(@Param("enumNonrefStringQuery") String enumNonrefStringQuery, @Param("enumRefStringQuery") StringEnumRef enumRefStringQuery);
|
||||
ApiResponse<String> testEnumRefStringWithHttpInfo(@Param("enumNonrefStringQuery") @javax.annotation.Nullable String enumNonrefStringQuery, @Param("enumRefStringQuery") @javax.annotation.Nullable StringEnumRef enumRefStringQuery);
|
||||
|
||||
|
||||
/**
|
||||
@@ -97,11 +97,11 @@ public interface QueryApi extends ApiClient.Api {
|
||||
* <code>testEnumRefString</code> method in a fluent style.
|
||||
*/
|
||||
public static class TestEnumRefStringQueryParams extends HashMap<String, Object> {
|
||||
public TestEnumRefStringQueryParams enumNonrefStringQuery(final String value) {
|
||||
public TestEnumRefStringQueryParams enumNonrefStringQuery(@javax.annotation.Nullable final String value) {
|
||||
put("enum_nonref_string_query", EncodingUtils.encode(value));
|
||||
return this;
|
||||
}
|
||||
public TestEnumRefStringQueryParams enumRefStringQuery(final StringEnumRef value) {
|
||||
public TestEnumRefStringQueryParams enumRefStringQuery(@javax.annotation.Nullable final StringEnumRef value) {
|
||||
put("enum_ref_string_query", EncodingUtils.encode(value));
|
||||
return this;
|
||||
}
|
||||
@@ -119,7 +119,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
String testQueryDatetimeDateString(@Param("datetimeQuery") OffsetDateTime datetimeQuery, @Param("dateQuery") LocalDate dateQuery, @Param("stringQuery") String stringQuery);
|
||||
String testQueryDatetimeDateString(@Param("datetimeQuery") @javax.annotation.Nullable OffsetDateTime datetimeQuery, @Param("dateQuery") @javax.annotation.Nullable LocalDate dateQuery, @Param("stringQuery") @javax.annotation.Nullable String stringQuery);
|
||||
|
||||
/**
|
||||
* Test query parameter(s)
|
||||
@@ -134,7 +134,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
ApiResponse<String> testQueryDatetimeDateStringWithHttpInfo(@Param("datetimeQuery") OffsetDateTime datetimeQuery, @Param("dateQuery") LocalDate dateQuery, @Param("stringQuery") String stringQuery);
|
||||
ApiResponse<String> testQueryDatetimeDateStringWithHttpInfo(@Param("datetimeQuery") @javax.annotation.Nullable OffsetDateTime datetimeQuery, @Param("dateQuery") @javax.annotation.Nullable LocalDate dateQuery, @Param("stringQuery") @javax.annotation.Nullable String stringQuery);
|
||||
|
||||
|
||||
/**
|
||||
@@ -186,15 +186,15 @@ public interface QueryApi extends ApiClient.Api {
|
||||
* <code>testQueryDatetimeDateString</code> method in a fluent style.
|
||||
*/
|
||||
public static class TestQueryDatetimeDateStringQueryParams extends HashMap<String, Object> {
|
||||
public TestQueryDatetimeDateStringQueryParams datetimeQuery(final OffsetDateTime value) {
|
||||
public TestQueryDatetimeDateStringQueryParams datetimeQuery(@javax.annotation.Nullable final OffsetDateTime value) {
|
||||
put("datetime_query", EncodingUtils.encode(value));
|
||||
return this;
|
||||
}
|
||||
public TestQueryDatetimeDateStringQueryParams dateQuery(final LocalDate value) {
|
||||
public TestQueryDatetimeDateStringQueryParams dateQuery(@javax.annotation.Nullable final LocalDate value) {
|
||||
put("date_query", EncodingUtils.encode(value));
|
||||
return this;
|
||||
}
|
||||
public TestQueryDatetimeDateStringQueryParams stringQuery(final String value) {
|
||||
public TestQueryDatetimeDateStringQueryParams stringQuery(@javax.annotation.Nullable final String value) {
|
||||
put("string_query", EncodingUtils.encode(value));
|
||||
return this;
|
||||
}
|
||||
@@ -212,7 +212,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
String testQueryIntegerBooleanString(@Param("integerQuery") Integer integerQuery, @Param("booleanQuery") Boolean booleanQuery, @Param("stringQuery") String stringQuery);
|
||||
String testQueryIntegerBooleanString(@Param("integerQuery") @javax.annotation.Nullable Integer integerQuery, @Param("booleanQuery") @javax.annotation.Nullable Boolean booleanQuery, @Param("stringQuery") @javax.annotation.Nullable String stringQuery);
|
||||
|
||||
/**
|
||||
* Test query parameter(s)
|
||||
@@ -227,7 +227,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
ApiResponse<String> testQueryIntegerBooleanStringWithHttpInfo(@Param("integerQuery") Integer integerQuery, @Param("booleanQuery") Boolean booleanQuery, @Param("stringQuery") String stringQuery);
|
||||
ApiResponse<String> testQueryIntegerBooleanStringWithHttpInfo(@Param("integerQuery") @javax.annotation.Nullable Integer integerQuery, @Param("booleanQuery") @javax.annotation.Nullable Boolean booleanQuery, @Param("stringQuery") @javax.annotation.Nullable String stringQuery);
|
||||
|
||||
|
||||
/**
|
||||
@@ -279,15 +279,15 @@ public interface QueryApi extends ApiClient.Api {
|
||||
* <code>testQueryIntegerBooleanString</code> method in a fluent style.
|
||||
*/
|
||||
public static class TestQueryIntegerBooleanStringQueryParams extends HashMap<String, Object> {
|
||||
public TestQueryIntegerBooleanStringQueryParams integerQuery(final Integer value) {
|
||||
public TestQueryIntegerBooleanStringQueryParams integerQuery(@javax.annotation.Nullable final Integer value) {
|
||||
put("integer_query", EncodingUtils.encode(value));
|
||||
return this;
|
||||
}
|
||||
public TestQueryIntegerBooleanStringQueryParams booleanQuery(final Boolean value) {
|
||||
public TestQueryIntegerBooleanStringQueryParams booleanQuery(@javax.annotation.Nullable final Boolean value) {
|
||||
put("boolean_query", EncodingUtils.encode(value));
|
||||
return this;
|
||||
}
|
||||
public TestQueryIntegerBooleanStringQueryParams stringQuery(final String value) {
|
||||
public TestQueryIntegerBooleanStringQueryParams stringQuery(@javax.annotation.Nullable final String value) {
|
||||
put("string_query", EncodingUtils.encode(value));
|
||||
return this;
|
||||
}
|
||||
@@ -303,7 +303,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
String testQueryStyleDeepObjectExplodeTrueObject(@Param("queryObject") Pet queryObject);
|
||||
String testQueryStyleDeepObjectExplodeTrueObject(@Param("queryObject") @javax.annotation.Nullable Pet queryObject);
|
||||
|
||||
/**
|
||||
* Test query parameter(s)
|
||||
@@ -316,7 +316,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
ApiResponse<String> testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(@Param("queryObject") Pet queryObject);
|
||||
ApiResponse<String> testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(@Param("queryObject") @javax.annotation.Nullable Pet queryObject);
|
||||
|
||||
|
||||
/**
|
||||
@@ -364,7 +364,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
* <code>testQueryStyleDeepObjectExplodeTrueObject</code> method in a fluent style.
|
||||
*/
|
||||
public static class TestQueryStyleDeepObjectExplodeTrueObjectQueryParams extends HashMap<String, Object> {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectQueryParams queryObject(final Pet value) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectQueryParams queryObject(@javax.annotation.Nullable final Pet value) {
|
||||
put("query_object", EncodingUtils.encode(value));
|
||||
return this;
|
||||
}
|
||||
@@ -380,7 +380,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
String testQueryStyleDeepObjectExplodeTrueObjectAllOf(@Param("queryObject") TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject);
|
||||
String testQueryStyleDeepObjectExplodeTrueObjectAllOf(@Param("queryObject") @javax.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject);
|
||||
|
||||
/**
|
||||
* Test query parameter(s)
|
||||
@@ -393,7 +393,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
ApiResponse<String> testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo(@Param("queryObject") TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject);
|
||||
ApiResponse<String> testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo(@Param("queryObject") @javax.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject);
|
||||
|
||||
|
||||
/**
|
||||
@@ -441,7 +441,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
* <code>testQueryStyleDeepObjectExplodeTrueObjectAllOf</code> method in a fluent style.
|
||||
*/
|
||||
public static class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryParams extends HashMap<String, Object> {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryParams queryObject(final TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter value) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryParams queryObject(@javax.annotation.Nullable final TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter value) {
|
||||
put("query_object", EncodingUtils.encode(value));
|
||||
return this;
|
||||
}
|
||||
@@ -457,7 +457,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
String testQueryStyleFormExplodeFalseArrayInteger(@Param("queryObject") List<Integer> queryObject);
|
||||
String testQueryStyleFormExplodeFalseArrayInteger(@Param("queryObject") @javax.annotation.Nullable List<Integer> queryObject);
|
||||
|
||||
/**
|
||||
* Test query parameter(s)
|
||||
@@ -470,7 +470,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
ApiResponse<String> testQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(@Param("queryObject") List<Integer> queryObject);
|
||||
ApiResponse<String> testQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(@Param("queryObject") @javax.annotation.Nullable List<Integer> queryObject);
|
||||
|
||||
|
||||
/**
|
||||
@@ -518,7 +518,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
* <code>testQueryStyleFormExplodeFalseArrayInteger</code> method in a fluent style.
|
||||
*/
|
||||
public static class TestQueryStyleFormExplodeFalseArrayIntegerQueryParams extends HashMap<String, Object> {
|
||||
public TestQueryStyleFormExplodeFalseArrayIntegerQueryParams queryObject(final List<Integer> value) {
|
||||
public TestQueryStyleFormExplodeFalseArrayIntegerQueryParams queryObject(@javax.annotation.Nullable final List<Integer> value) {
|
||||
put("query_object", EncodingUtils.encodeCollection(value, "csv"));
|
||||
return this;
|
||||
}
|
||||
@@ -534,7 +534,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
String testQueryStyleFormExplodeFalseArrayString(@Param("queryObject") List<String> queryObject);
|
||||
String testQueryStyleFormExplodeFalseArrayString(@Param("queryObject") @javax.annotation.Nullable List<String> queryObject);
|
||||
|
||||
/**
|
||||
* Test query parameter(s)
|
||||
@@ -547,7 +547,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
ApiResponse<String> testQueryStyleFormExplodeFalseArrayStringWithHttpInfo(@Param("queryObject") List<String> queryObject);
|
||||
ApiResponse<String> testQueryStyleFormExplodeFalseArrayStringWithHttpInfo(@Param("queryObject") @javax.annotation.Nullable List<String> queryObject);
|
||||
|
||||
|
||||
/**
|
||||
@@ -595,7 +595,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
* <code>testQueryStyleFormExplodeFalseArrayString</code> method in a fluent style.
|
||||
*/
|
||||
public static class TestQueryStyleFormExplodeFalseArrayStringQueryParams extends HashMap<String, Object> {
|
||||
public TestQueryStyleFormExplodeFalseArrayStringQueryParams queryObject(final List<String> value) {
|
||||
public TestQueryStyleFormExplodeFalseArrayStringQueryParams queryObject(@javax.annotation.Nullable final List<String> value) {
|
||||
put("query_object", EncodingUtils.encodeCollection(value, "csv"));
|
||||
return this;
|
||||
}
|
||||
@@ -611,7 +611,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
String testQueryStyleFormExplodeTrueArrayString(@Param("queryObject") TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject);
|
||||
String testQueryStyleFormExplodeTrueArrayString(@Param("queryObject") @javax.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject);
|
||||
|
||||
/**
|
||||
* Test query parameter(s)
|
||||
@@ -624,7 +624,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
ApiResponse<String> testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(@Param("queryObject") TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject);
|
||||
ApiResponse<String> testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(@Param("queryObject") @javax.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject);
|
||||
|
||||
|
||||
/**
|
||||
@@ -672,7 +672,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
* <code>testQueryStyleFormExplodeTrueArrayString</code> method in a fluent style.
|
||||
*/
|
||||
public static class TestQueryStyleFormExplodeTrueArrayStringQueryParams extends HashMap<String, Object> {
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryParams queryObject(final TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter value) {
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryParams queryObject(@javax.annotation.Nullable final TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter value) {
|
||||
put("query_object", EncodingUtils.encode(value));
|
||||
return this;
|
||||
}
|
||||
@@ -688,7 +688,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
String testQueryStyleFormExplodeTrueObject(@Param("queryObject") Pet queryObject);
|
||||
String testQueryStyleFormExplodeTrueObject(@Param("queryObject") @javax.annotation.Nullable Pet queryObject);
|
||||
|
||||
/**
|
||||
* Test query parameter(s)
|
||||
@@ -701,7 +701,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
ApiResponse<String> testQueryStyleFormExplodeTrueObjectWithHttpInfo(@Param("queryObject") Pet queryObject);
|
||||
ApiResponse<String> testQueryStyleFormExplodeTrueObjectWithHttpInfo(@Param("queryObject") @javax.annotation.Nullable Pet queryObject);
|
||||
|
||||
|
||||
/**
|
||||
@@ -749,7 +749,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
* <code>testQueryStyleFormExplodeTrueObject</code> method in a fluent style.
|
||||
*/
|
||||
public static class TestQueryStyleFormExplodeTrueObjectQueryParams extends HashMap<String, Object> {
|
||||
public TestQueryStyleFormExplodeTrueObjectQueryParams queryObject(final Pet value) {
|
||||
public TestQueryStyleFormExplodeTrueObjectQueryParams queryObject(@javax.annotation.Nullable final Pet value) {
|
||||
put("query_object", EncodingUtils.encode(value));
|
||||
return this;
|
||||
}
|
||||
@@ -765,7 +765,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
String testQueryStyleFormExplodeTrueObjectAllOf(@Param("queryObject") DataQuery queryObject);
|
||||
String testQueryStyleFormExplodeTrueObjectAllOf(@Param("queryObject") @javax.annotation.Nullable DataQuery queryObject);
|
||||
|
||||
/**
|
||||
* Test query parameter(s)
|
||||
@@ -778,7 +778,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
@Headers({
|
||||
"Accept: text/plain",
|
||||
})
|
||||
ApiResponse<String> testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo(@Param("queryObject") DataQuery queryObject);
|
||||
ApiResponse<String> testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo(@Param("queryObject") @javax.annotation.Nullable DataQuery queryObject);
|
||||
|
||||
|
||||
/**
|
||||
@@ -826,7 +826,7 @@ public interface QueryApi extends ApiClient.Api {
|
||||
* <code>testQueryStyleFormExplodeTrueObjectAllOf</code> method in a fluent style.
|
||||
*/
|
||||
public static class TestQueryStyleFormExplodeTrueObjectAllOfQueryParams extends HashMap<String, Object> {
|
||||
public TestQueryStyleFormExplodeTrueObjectAllOfQueryParams queryObject(final DataQuery value) {
|
||||
public TestQueryStyleFormExplodeTrueObjectAllOfQueryParams queryObject(@javax.annotation.Nullable final DataQuery value) {
|
||||
put("query_object", EncodingUtils.encode(value));
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user