forked from loafle/openapi-generator-original
* fix #16797 and #15796 spring child constructor missing parent params * root cause and update the DefaultCodegen.java to add missing property when with multi inheritance * rollback SpringCodegen.java * update samples * rollback with master cause #16992 fixed this issue too * still using orignal design * catchup master * catchup master * catchup master * fix * add tests --------- Co-authored-by: dabdirb <dabdirb@gmail.com>
This commit is contained in:
@@ -534,6 +534,67 @@ sub fake_property_enum_integer_serialize {
|
||||
return $_response_object;
|
||||
}
|
||||
|
||||
#
|
||||
# test_additional_properties_reference
|
||||
#
|
||||
# test referenced additionalProperties
|
||||
#
|
||||
# @param HASH[string,AnyType] $request_body request body (required)
|
||||
{
|
||||
my $params = {
|
||||
'request_body' => {
|
||||
data_type => 'HASH[string,AnyType]',
|
||||
description => 'request body',
|
||||
required => '1',
|
||||
},
|
||||
};
|
||||
__PACKAGE__->method_documentation->{ 'test_additional_properties_reference' } = {
|
||||
summary => 'test referenced additionalProperties',
|
||||
params => $params,
|
||||
returns => undef,
|
||||
};
|
||||
}
|
||||
# @return void
|
||||
#
|
||||
sub test_additional_properties_reference {
|
||||
my ($self, %args) = @_;
|
||||
|
||||
# verify the required parameter 'request_body' is set
|
||||
unless (exists $args{'request_body'}) {
|
||||
croak("Missing the required parameter 'request_body' when calling test_additional_properties_reference");
|
||||
}
|
||||
|
||||
# parse inputs
|
||||
my $_resource_path = '/fake/additionalProperties-reference';
|
||||
|
||||
my $_method = 'POST';
|
||||
my $query_params = {};
|
||||
my $header_params = {};
|
||||
my $form_params = {};
|
||||
|
||||
# 'Accept' and 'Content-Type' header
|
||||
my $_header_accept = $self->{api_client}->select_header_accept();
|
||||
if ($_header_accept) {
|
||||
$header_params->{'Accept'} = $_header_accept;
|
||||
}
|
||||
$header_params->{'Content-Type'} = $self->{api_client}->select_header_content_type('application/json');
|
||||
|
||||
my $_body_data;
|
||||
# body params
|
||||
if ( exists $args{'request_body'}) {
|
||||
$_body_data = $args{'request_body'};
|
||||
}
|
||||
|
||||
# authentication setting, if any
|
||||
my $auth_settings = [qw()];
|
||||
|
||||
# make the API Call
|
||||
$self->{api_client}->call_api($_resource_path, $_method,
|
||||
$query_params, $form_params,
|
||||
$header_params, $_body_data, $auth_settings);
|
||||
return;
|
||||
}
|
||||
|
||||
#
|
||||
# test_body_with_binary
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user