mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 16:12:49 +00:00
Better inline model resolver to handle inline schema in array item (#12104)
* better support of inline schema in array item * update tests * update samples * regenerate samples * fix allof naming, remove files * add files * update samples * update readme * fix tests * update samples * update samples * add new files * update test spec * add back tests * remove unused files * comment out python test * update js test using own spec * remove files * remove unused files * remove files * remove unused files * better handling of allOf with a single type * comment out go test * remove test_all_of_with_single_ref_single_ref_type.py * fix inline resolver, uncomment go test
This commit is contained in:
34
samples/client/petstore/perl/t/AllOfWithSingleRefTest.t
Normal file
34
samples/client/petstore/perl/t/AllOfWithSingleRefTest.t
Normal file
@@ -0,0 +1,34 @@
|
||||
=begin comment
|
||||
|
||||
OpenAPI Petstore
|
||||
|
||||
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
|
||||
Generated by: https://openapi-generator.tech
|
||||
|
||||
=end comment
|
||||
|
||||
=cut
|
||||
|
||||
#
|
||||
# NOTE: This class is auto generated by the OpenAPI Generator
|
||||
# Please update the test cases below to test the model.
|
||||
# Ref: https://openapi-generator.tech
|
||||
#
|
||||
use Test::More tests => 2;
|
||||
use Test::Exception;
|
||||
|
||||
use lib 'lib';
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
|
||||
use_ok('WWW::OpenAPIClient::Object::AllOfWithSingleRef');
|
||||
|
||||
# uncomment below and update the test
|
||||
#my $instance = WWW::OpenAPIClient::Object::AllOfWithSingleRef->new();
|
||||
#
|
||||
#isa_ok($instance, 'WWW::OpenAPIClient::Object::AllOfWithSingleRef');
|
||||
|
||||
@@ -25,10 +25,10 @@ use strict;
|
||||
use warnings;
|
||||
|
||||
|
||||
use_ok('WWW::OpenAPIClient::Object::UserType');
|
||||
use_ok('WWW::OpenAPIClient::Object::SingleRefType');
|
||||
|
||||
# uncomment below and update the test
|
||||
#my $instance = WWW::OpenAPIClient::Object::UserType->new();
|
||||
#my $instance = WWW::OpenAPIClient::Object::SingleRefType->new();
|
||||
#
|
||||
#isa_ok($instance, 'WWW::OpenAPIClient::Object::UserType');
|
||||
#isa_ok($instance, 'WWW::OpenAPIClient::Object::SingleRefType');
|
||||
|
||||
Reference in New Issue
Block a user