forked from loafle/openapi-generator-original
fix isMap (#16043)
This commit is contained in:
@@ -226,11 +226,8 @@ public interface IJsonSchemaValidationProperties {
|
|||||||
* @param p the schema which contains the type info
|
* @param p the schema which contains the type info
|
||||||
*/
|
*/
|
||||||
default void setTypeProperties(Schema p) {
|
default void setTypeProperties(Schema p) {
|
||||||
if (ModelUtils.isTypeObjectSchema(p)) {
|
|
||||||
setIsMap(true);
|
|
||||||
if (ModelUtils.isModelWithPropertiesOnly(p)) {
|
if (ModelUtils.isModelWithPropertiesOnly(p)) {
|
||||||
setIsModel(true);
|
setIsModel(true);
|
||||||
}
|
|
||||||
} else if (ModelUtils.isArraySchema(p)) {
|
} else if (ModelUtils.isArraySchema(p)) {
|
||||||
setIsArray(true);
|
setIsArray(true);
|
||||||
} else if (ModelUtils.isFileSchema(p) && !ModelUtils.isStringSchema(p)) {
|
} else if (ModelUtils.isFileSchema(p) && !ModelUtils.isStringSchema(p)) {
|
||||||
@@ -282,9 +279,8 @@ public interface IJsonSchemaValidationProperties {
|
|||||||
setIsNull(true);
|
setIsNull(true);
|
||||||
} else if (ModelUtils.isAnyType(p)) {
|
} else if (ModelUtils.isAnyType(p)) {
|
||||||
setIsAnyType(true);
|
setIsAnyType(true);
|
||||||
if (ModelUtils.isModelWithPropertiesOnly(p)) {
|
} else if (ModelUtils.isTypeObjectSchema(p)) {
|
||||||
setIsModel(true);
|
setIsMap(true);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4030,8 +4030,7 @@ public class DefaultCodegenTest {
|
|||||||
CodegenMediaType mt = content.get("application/json");
|
CodegenMediaType mt = content.get("application/json");
|
||||||
assertNull(mt.getEncoding());
|
assertNull(mt.getEncoding());
|
||||||
CodegenProperty cp = mt.getSchema();
|
CodegenProperty cp = mt.getSchema();
|
||||||
// TODO need to revise the test below
|
assertFalse(cp.isMap);
|
||||||
assertTrue(cp.isMap);
|
|
||||||
assertTrue(cp.isModel);
|
assertTrue(cp.isModel);
|
||||||
assertEquals(cp.complexType, "object");
|
assertEquals(cp.complexType, "object");
|
||||||
assertEquals(cp.baseName, "SchemaForRequestParameterCoordinatesInlineSchemaApplicationJson");
|
assertEquals(cp.baseName, "SchemaForRequestParameterCoordinatesInlineSchemaApplicationJson");
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ public class JavascriptClientCodegenTest {
|
|||||||
|
|
||||||
@Test(description = "test defaultValueWithParam for model's properties")
|
@Test(description = "test defaultValueWithParam for model's properties")
|
||||||
public void bodyParameterTest() {
|
public void bodyParameterTest() {
|
||||||
final OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/2_0/petstore.yaml");
|
final OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/3_0/petstore.yaml");
|
||||||
final JavascriptClientCodegen codegen = new JavascriptClientCodegen();
|
final JavascriptClientCodegen codegen = new JavascriptClientCodegen();
|
||||||
final Schema pet = openAPI.getComponents().getSchemas().get("Pet");
|
final Schema pet = openAPI.getComponents().getSchemas().get("Pet");
|
||||||
codegen.setOpenAPI(openAPI);
|
codegen.setOpenAPI(openAPI);
|
||||||
@@ -98,7 +98,7 @@ public class JavascriptClientCodegenTest {
|
|||||||
|
|
||||||
@Test(description = "test isDefault in the response")
|
@Test(description = "test isDefault in the response")
|
||||||
public void testResponseIsDefault() throws Exception {
|
public void testResponseIsDefault() throws Exception {
|
||||||
final OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/2_0/petstore.yaml");
|
final OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/3_0/petstore.yaml");
|
||||||
final DefaultCodegen codegen = new DefaultCodegen();
|
final DefaultCodegen codegen = new DefaultCodegen();
|
||||||
codegen.setOpenAPI(openAPI);
|
codegen.setOpenAPI(openAPI);
|
||||||
|
|
||||||
|
|||||||
@@ -245,7 +245,7 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://localhost:3000");
|
defaultClient.setBasePath("http://localhost:3000");
|
||||||
|
|
||||||
QueryApi apiInstance = new QueryApi(defaultClient);
|
QueryApi apiInstance = new QueryApi(defaultClient);
|
||||||
Pet queryObject = new HashMap(); // Pet |
|
Pet queryObject = new Pet(); // Pet |
|
||||||
try {
|
try {
|
||||||
String result = apiInstance.testQueryStyleDeepObjectExplodeTrueObject(queryObject);
|
String result = apiInstance.testQueryStyleDeepObjectExplodeTrueObject(queryObject);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
@@ -377,7 +377,7 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://localhost:3000");
|
defaultClient.setBasePath("http://localhost:3000");
|
||||||
|
|
||||||
QueryApi apiInstance = new QueryApi(defaultClient);
|
QueryApi apiInstance = new QueryApi(defaultClient);
|
||||||
TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject = new HashMap(); // TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter |
|
TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject = new TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(); // TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter |
|
||||||
try {
|
try {
|
||||||
String result = apiInstance.testQueryStyleFormExplodeTrueArrayString(queryObject);
|
String result = apiInstance.testQueryStyleFormExplodeTrueArrayString(queryObject);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
@@ -443,7 +443,7 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://localhost:3000");
|
defaultClient.setBasePath("http://localhost:3000");
|
||||||
|
|
||||||
QueryApi apiInstance = new QueryApi(defaultClient);
|
QueryApi apiInstance = new QueryApi(defaultClient);
|
||||||
Pet queryObject = new HashMap(); // Pet |
|
Pet queryObject = new Pet(); // Pet |
|
||||||
try {
|
try {
|
||||||
String result = apiInstance.testQueryStyleFormExplodeTrueObject(queryObject);
|
String result = apiInstance.testQueryStyleFormExplodeTrueObject(queryObject);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
|
|||||||
@@ -465,7 +465,7 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://localhost:3000");
|
defaultClient.setBasePath("http://localhost:3000");
|
||||||
|
|
||||||
QueryApi apiInstance = new QueryApi(defaultClient);
|
QueryApi apiInstance = new QueryApi(defaultClient);
|
||||||
Pet queryObject = new HashMap(); // Pet |
|
Pet queryObject = new Pet(); // Pet |
|
||||||
try {
|
try {
|
||||||
String result = apiInstance.testQueryStyleDeepObjectExplodeTrueObject(queryObject);
|
String result = apiInstance.testQueryStyleDeepObjectExplodeTrueObject(queryObject);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
@@ -531,7 +531,7 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://localhost:3000");
|
defaultClient.setBasePath("http://localhost:3000");
|
||||||
|
|
||||||
QueryApi apiInstance = new QueryApi(defaultClient);
|
QueryApi apiInstance = new QueryApi(defaultClient);
|
||||||
Pet queryObject = new HashMap(); // Pet |
|
Pet queryObject = new Pet(); // Pet |
|
||||||
try {
|
try {
|
||||||
ApiResponse<String> response = apiInstance.testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(queryObject);
|
ApiResponse<String> response = apiInstance.testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(queryObject);
|
||||||
System.out.println("Status code: " + response.getStatusCode());
|
System.out.println("Status code: " + response.getStatusCode());
|
||||||
@@ -733,7 +733,7 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://localhost:3000");
|
defaultClient.setBasePath("http://localhost:3000");
|
||||||
|
|
||||||
QueryApi apiInstance = new QueryApi(defaultClient);
|
QueryApi apiInstance = new QueryApi(defaultClient);
|
||||||
TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject = new HashMap(); // TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter |
|
TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject = new TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(); // TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter |
|
||||||
try {
|
try {
|
||||||
String result = apiInstance.testQueryStyleFormExplodeTrueArrayString(queryObject);
|
String result = apiInstance.testQueryStyleFormExplodeTrueArrayString(queryObject);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
@@ -799,7 +799,7 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://localhost:3000");
|
defaultClient.setBasePath("http://localhost:3000");
|
||||||
|
|
||||||
QueryApi apiInstance = new QueryApi(defaultClient);
|
QueryApi apiInstance = new QueryApi(defaultClient);
|
||||||
TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject = new HashMap(); // TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter |
|
TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject = new TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(); // TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter |
|
||||||
try {
|
try {
|
||||||
ApiResponse<String> response = apiInstance.testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(queryObject);
|
ApiResponse<String> response = apiInstance.testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(queryObject);
|
||||||
System.out.println("Status code: " + response.getStatusCode());
|
System.out.println("Status code: " + response.getStatusCode());
|
||||||
@@ -867,7 +867,7 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://localhost:3000");
|
defaultClient.setBasePath("http://localhost:3000");
|
||||||
|
|
||||||
QueryApi apiInstance = new QueryApi(defaultClient);
|
QueryApi apiInstance = new QueryApi(defaultClient);
|
||||||
Pet queryObject = new HashMap(); // Pet |
|
Pet queryObject = new Pet(); // Pet |
|
||||||
try {
|
try {
|
||||||
String result = apiInstance.testQueryStyleFormExplodeTrueObject(queryObject);
|
String result = apiInstance.testQueryStyleFormExplodeTrueObject(queryObject);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
@@ -933,7 +933,7 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://localhost:3000");
|
defaultClient.setBasePath("http://localhost:3000");
|
||||||
|
|
||||||
QueryApi apiInstance = new QueryApi(defaultClient);
|
QueryApi apiInstance = new QueryApi(defaultClient);
|
||||||
Pet queryObject = new HashMap(); // Pet |
|
Pet queryObject = new Pet(); // Pet |
|
||||||
try {
|
try {
|
||||||
ApiResponse<String> response = apiInstance.testQueryStyleFormExplodeTrueObjectWithHttpInfo(queryObject);
|
ApiResponse<String> response = apiInstance.testQueryStyleFormExplodeTrueObjectWithHttpInfo(queryObject);
|
||||||
System.out.println("Status code: " + response.getStatusCode());
|
System.out.println("Status code: " + response.getStatusCode());
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://localhost:3000");
|
defaultClient.setBasePath("http://localhost:3000");
|
||||||
|
|
||||||
QueryApi apiInstance = new QueryApi(defaultClient);
|
QueryApi apiInstance = new QueryApi(defaultClient);
|
||||||
Pet queryObject = new HashMap(); // Pet |
|
Pet queryObject = new Pet(); // Pet |
|
||||||
try {
|
try {
|
||||||
String result = apiInstance.testQueryStyleDeepObjectExplodeTrueObject(queryObject);
|
String result = apiInstance.testQueryStyleDeepObjectExplodeTrueObject(queryObject);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
@@ -355,7 +355,7 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://localhost:3000");
|
defaultClient.setBasePath("http://localhost:3000");
|
||||||
|
|
||||||
QueryApi apiInstance = new QueryApi(defaultClient);
|
QueryApi apiInstance = new QueryApi(defaultClient);
|
||||||
TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject = new HashMap(); // TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter |
|
TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject = new TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(); // TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter |
|
||||||
try {
|
try {
|
||||||
String result = apiInstance.testQueryStyleFormExplodeTrueArrayString(queryObject);
|
String result = apiInstance.testQueryStyleFormExplodeTrueArrayString(queryObject);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
@@ -417,7 +417,7 @@ public class Example {
|
|||||||
defaultClient.setBasePath("http://localhost:3000");
|
defaultClient.setBasePath("http://localhost:3000");
|
||||||
|
|
||||||
QueryApi apiInstance = new QueryApi(defaultClient);
|
QueryApi apiInstance = new QueryApi(defaultClient);
|
||||||
Pet queryObject = new HashMap(); // Pet |
|
Pet queryObject = new Pet(); // Pet |
|
||||||
try {
|
try {
|
||||||
String result = apiInstance.testQueryStyleFormExplodeTrueObject(queryObject);
|
String result = apiInstance.testQueryStyleFormExplodeTrueObject(queryObject);
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
|
|||||||
@@ -231,6 +231,7 @@ Test query parameter(s)
|
|||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
import openapi_client
|
import openapi_client
|
||||||
|
from openapi_client.models.pet import Pet
|
||||||
from openapi_client.rest import ApiException
|
from openapi_client.rest import ApiException
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
|
|
||||||
@@ -245,7 +246,7 @@ configuration = openapi_client.Configuration(
|
|||||||
with openapi_client.ApiClient(configuration) as api_client:
|
with openapi_client.ApiClient(configuration) as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = openapi_client.QueryApi(api_client)
|
api_instance = openapi_client.QueryApi(api_client)
|
||||||
query_object = {'key': openapi_client.Pet()} # Pet | (optional)
|
query_object = openapi_client.Pet() # Pet | (optional)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Test query parameter(s)
|
# Test query parameter(s)
|
||||||
@@ -361,6 +362,7 @@ Test query parameter(s)
|
|||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
import openapi_client
|
import openapi_client
|
||||||
|
from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
|
||||||
from openapi_client.rest import ApiException
|
from openapi_client.rest import ApiException
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
|
|
||||||
@@ -375,7 +377,7 @@ configuration = openapi_client.Configuration(
|
|||||||
with openapi_client.ApiClient(configuration) as api_client:
|
with openapi_client.ApiClient(configuration) as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = openapi_client.QueryApi(api_client)
|
api_instance = openapi_client.QueryApi(api_client)
|
||||||
query_object = {'key': openapi_client.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter()} # TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter | (optional)
|
query_object = openapi_client.TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() # TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter | (optional)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Test query parameter(s)
|
# Test query parameter(s)
|
||||||
@@ -426,6 +428,7 @@ Test query parameter(s)
|
|||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
import openapi_client
|
import openapi_client
|
||||||
|
from openapi_client.models.pet import Pet
|
||||||
from openapi_client.rest import ApiException
|
from openapi_client.rest import ApiException
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
|
|
||||||
@@ -440,7 +443,7 @@ configuration = openapi_client.Configuration(
|
|||||||
with openapi_client.ApiClient(configuration) as api_client:
|
with openapi_client.ApiClient(configuration) as api_client:
|
||||||
# Create an instance of the API class
|
# Create an instance of the API class
|
||||||
api_instance = openapi_client.QueryApi(api_client)
|
api_instance = openapi_client.QueryApi(api_client)
|
||||||
query_object = {'key': openapi_client.Pet()} # Pet | (optional)
|
query_object = openapi_client.Pet() # Pet | (optional)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Test query parameter(s)
|
# Test query parameter(s)
|
||||||
|
|||||||
@@ -24,9 +24,11 @@ from datetime import date, datetime
|
|||||||
|
|
||||||
from pydantic import StrictBool, StrictInt, StrictStr
|
from pydantic import StrictBool, StrictInt, StrictStr
|
||||||
|
|
||||||
from typing import Any, Dict, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
|
from openapi_client.models.pet import Pet
|
||||||
from openapi_client.models.string_enum_ref import StringEnumRef
|
from openapi_client.models.string_enum_ref import StringEnumRef
|
||||||
|
from openapi_client.models.test_query_style_form_explode_true_array_string_query_object_parameter import TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter
|
||||||
|
|
||||||
from openapi_client.api_client import ApiClient
|
from openapi_client.api_client import ApiClient
|
||||||
from openapi_client.api_response import ApiResponse
|
from openapi_client.api_response import ApiResponse
|
||||||
@@ -504,7 +506,7 @@ class QueryApi(object):
|
|||||||
_request_auth=_params.get('_request_auth'))
|
_request_auth=_params.get('_request_auth'))
|
||||||
|
|
||||||
@validate_arguments
|
@validate_arguments
|
||||||
def test_query_style_deep_object_explode_true_object(self, query_object : Optional[Dict[str, Dict[str, Any]]] = None, **kwargs) -> str: # noqa: E501
|
def test_query_style_deep_object_explode_true_object(self, query_object : Optional[Pet] = None, **kwargs) -> str: # noqa: E501
|
||||||
"""Test query parameter(s) # noqa: E501
|
"""Test query parameter(s) # noqa: E501
|
||||||
|
|
||||||
Test query parameter(s) # noqa: E501
|
Test query parameter(s) # noqa: E501
|
||||||
@@ -533,7 +535,7 @@ class QueryApi(object):
|
|||||||
return self.test_query_style_deep_object_explode_true_object_with_http_info(query_object, **kwargs) # noqa: E501
|
return self.test_query_style_deep_object_explode_true_object_with_http_info(query_object, **kwargs) # noqa: E501
|
||||||
|
|
||||||
@validate_arguments
|
@validate_arguments
|
||||||
def test_query_style_deep_object_explode_true_object_with_http_info(self, query_object : Optional[Dict[str, Dict[str, Any]]] = None, **kwargs) -> ApiResponse: # noqa: E501
|
def test_query_style_deep_object_explode_true_object_with_http_info(self, query_object : Optional[Pet] = None, **kwargs) -> ApiResponse: # noqa: E501
|
||||||
"""Test query parameter(s) # noqa: E501
|
"""Test query parameter(s) # noqa: E501
|
||||||
|
|
||||||
Test query parameter(s) # noqa: E501
|
Test query parameter(s) # noqa: E501
|
||||||
@@ -782,7 +784,7 @@ class QueryApi(object):
|
|||||||
_request_auth=_params.get('_request_auth'))
|
_request_auth=_params.get('_request_auth'))
|
||||||
|
|
||||||
@validate_arguments
|
@validate_arguments
|
||||||
def test_query_style_form_explode_true_array_string(self, query_object : Optional[Dict[str, Any]] = None, **kwargs) -> str: # noqa: E501
|
def test_query_style_form_explode_true_array_string(self, query_object : Optional[TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter] = None, **kwargs) -> str: # noqa: E501
|
||||||
"""Test query parameter(s) # noqa: E501
|
"""Test query parameter(s) # noqa: E501
|
||||||
|
|
||||||
Test query parameter(s) # noqa: E501
|
Test query parameter(s) # noqa: E501
|
||||||
@@ -811,7 +813,7 @@ class QueryApi(object):
|
|||||||
return self.test_query_style_form_explode_true_array_string_with_http_info(query_object, **kwargs) # noqa: E501
|
return self.test_query_style_form_explode_true_array_string_with_http_info(query_object, **kwargs) # noqa: E501
|
||||||
|
|
||||||
@validate_arguments
|
@validate_arguments
|
||||||
def test_query_style_form_explode_true_array_string_with_http_info(self, query_object : Optional[Dict[str, Any]] = None, **kwargs) -> ApiResponse: # noqa: E501
|
def test_query_style_form_explode_true_array_string_with_http_info(self, query_object : Optional[TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter] = None, **kwargs) -> ApiResponse: # noqa: E501
|
||||||
"""Test query parameter(s) # noqa: E501
|
"""Test query parameter(s) # noqa: E501
|
||||||
|
|
||||||
Test query parameter(s) # noqa: E501
|
Test query parameter(s) # noqa: E501
|
||||||
@@ -921,7 +923,7 @@ class QueryApi(object):
|
|||||||
_request_auth=_params.get('_request_auth'))
|
_request_auth=_params.get('_request_auth'))
|
||||||
|
|
||||||
@validate_arguments
|
@validate_arguments
|
||||||
def test_query_style_form_explode_true_object(self, query_object : Optional[Dict[str, Any]] = None, **kwargs) -> str: # noqa: E501
|
def test_query_style_form_explode_true_object(self, query_object : Optional[Pet] = None, **kwargs) -> str: # noqa: E501
|
||||||
"""Test query parameter(s) # noqa: E501
|
"""Test query parameter(s) # noqa: E501
|
||||||
|
|
||||||
Test query parameter(s) # noqa: E501
|
Test query parameter(s) # noqa: E501
|
||||||
@@ -950,7 +952,7 @@ class QueryApi(object):
|
|||||||
return self.test_query_style_form_explode_true_object_with_http_info(query_object, **kwargs) # noqa: E501
|
return self.test_query_style_form_explode_true_object_with_http_info(query_object, **kwargs) # noqa: E501
|
||||||
|
|
||||||
@validate_arguments
|
@validate_arguments
|
||||||
def test_query_style_form_explode_true_object_with_http_info(self, query_object : Optional[Dict[str, Any]] = None, **kwargs) -> ApiResponse: # noqa: E501
|
def test_query_style_form_explode_true_object_with_http_info(self, query_object : Optional[Pet] = None, **kwargs) -> ApiResponse: # noqa: E501
|
||||||
"""Test query parameter(s) # noqa: E501
|
"""Test query parameter(s) # noqa: E501
|
||||||
|
|
||||||
Test query parameter(s) # noqa: E501
|
Test query parameter(s) # noqa: E501
|
||||||
|
|||||||
@@ -932,8 +932,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
testPet := map[string][]openapiclient.Pet{"key": map[string]interface{}{ ... }} // Pet | (optional)
|
testPet := *openapiclient.NewPet("doggie", []string{"PhotoUrls_example"}) // Pet | (optional)
|
||||||
inputOptions := map[string][]openapiclient.Category{"key": map[string]interface{}{ ... }} // Category | (optional)
|
inputOptions := *openapiclient.NewCategory("Name_example") // Category | (optional)
|
||||||
|
|
||||||
configuration := openapiclient.NewConfiguration()
|
configuration := openapiclient.NewConfiguration()
|
||||||
apiClient := openapiclient.NewAPIClient(configuration)
|
apiClient := openapiclient.NewAPIClient(configuration)
|
||||||
|
|||||||
Reference in New Issue
Block a user