Fix alias to map in the model's properties (#360)

* add test case for ref to map (boolean) in fake petstore spec

* fix alias to map in model properties

* remove logging from new method

* update samples for the new map test case

* fix javadoc string

* skip testSanitizeNestedInvalidValue in php test

* skip test in php oas3 client

* add logic to handle outer enum

* update samples

* fix alias in model's allOf

* generate models for map def

* update petstore samples

* update petstore samples
This commit is contained in:
William Cheng
2018-06-21 22:59:02 +08:00
committed by GitHub
parent 9509e66ae8
commit a897feef50
186 changed files with 6263 additions and 807 deletions

View File

@@ -89,4 +89,18 @@ class MapTestTest extends \PHPUnit_Framework_TestCase
public function testPropertyMapOfEnumString()
{
}
/**
* Test attribute "direct_map"
*/
public function testPropertyDirectMap()
{
}
/**
* Test attribute "indirect_map"
*/
public function testPropertyIndirectMap()
{
}
}

View File

@@ -0,0 +1,78 @@
<?php
/**
* StringBooleanMapTest
*
* PHP version 5
*
* @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: \" \\
*
* OpenAPI spec version: 1.0.0
*
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 3.1.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;
/**
* StringBooleanMapTest Class Doc Comment
*
* @category Class
* @description StringBooleanMap
* @package OpenAPI\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class StringBooleanMapTest extends \PHPUnit_Framework_TestCase
{
/**
* Setup before running any test case
*/
public static function setUpBeforeClass()
{
}
/**
* Setup before running each test case
*/
public function setUp()
{
}
/**
* Clean up after running each test case
*/
public function tearDown()
{
}
/**
* Clean up after running all test cases
*/
public static function tearDownAfterClass()
{
}
/**
* Test "StringBooleanMap"
*/
public function testStringBooleanMap()
{
}
}