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:
William Cheng
2022-04-20 10:28:15 +08:00
committed by GitHub
parent 12454de3ac
commit 8330e16d66
200 changed files with 7495 additions and 975 deletions

View File

@@ -0,0 +1,99 @@
<?php
/**
* AllOfWithSingleRefTest
*
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
* 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
* OpenAPI Generator version: 6.0.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Please update the test case below to test the model.
*/
namespace OpenAPI\Client\Test\Model;
use PHPUnit\Framework\TestCase;
/**
* AllOfWithSingleRefTest Class Doc Comment
*
* @category Class
* @description AllOfWithSingleRef
* @package OpenAPI\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class AllOfWithSingleRefTest extends TestCase
{
/**
* Setup before running any test case
*/
public static function setUpBeforeClass(): void
{
}
/**
* Setup before running each test case
*/
public function setUp(): void
{
}
/**
* Clean up after running each test case
*/
public function tearDown(): void
{
}
/**
* Clean up after running all test cases
*/
public static function tearDownAfterClass(): void
{
}
/**
* Test "AllOfWithSingleRef"
*/
public function testAllOfWithSingleRef()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
}
/**
* Test attribute "username"
*/
public function testPropertyUsername()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
}
/**
* Test attribute "single_ref_type"
*/
public function testPropertySingleRefType()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
}
}

View File

@@ -1,6 +1,6 @@
<?php
/**
* UserTypeTest
* SingleRefTypeTest
*
* PHP version 7.3
*
@@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.3.1-SNAPSHOT
* OpenAPI Generator version: 6.0.0-SNAPSHOT
*/
/**
@@ -31,15 +31,15 @@ namespace OpenAPI\Client\Test\Model;
use PHPUnit\Framework\TestCase;
/**
* UserTypeTest Class Doc Comment
* SingleRefTypeTest Class Doc Comment
*
* @category Class
* @description UserType
* @description SingleRefType
* @package OpenAPI\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class UserTypeTest extends TestCase
class SingleRefTypeTest extends TestCase
{
/**
@@ -71,9 +71,9 @@ class UserTypeTest extends TestCase
}
/**
* Test "UserType"
* Test "SingleRefType"
*/
public function testUserType()
public function testSingleRefType()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');