forked from loafle/openapi-generator-original
better handling of multiline comments for all lang
This commit is contained in:
@@ -11,12 +11,12 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Swagger Petstore ' \" =end
|
||||
* Swagger Petstore *_/ ' \" =end
|
||||
*
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ ' \" =end
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ *_/ ' \" =end
|
||||
*
|
||||
* OpenAPI spec version: 1.0.0 ' \" =end
|
||||
* Contact: apiteam@swagger.io ' \" =end
|
||||
* OpenAPI spec version: 1.0.0 *_/ ' \" =end
|
||||
* Contact: apiteam@swagger.io *_/ ' \" =end
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -73,7 +73,7 @@ class FakeApi
|
||||
{
|
||||
if ($apiClient == null) {
|
||||
$apiClient = new ApiClient();
|
||||
$apiClient->getConfig()->setHost('https://petstore.swagger.io ' \" =end/v2 ' \" =end');
|
||||
$apiClient->getConfig()->setHost('https://petstore.swagger.io *_/ ' \" =end/v2 *_/ ' \" =end');
|
||||
}
|
||||
|
||||
$this->apiClient = $apiClient;
|
||||
@@ -105,9 +105,9 @@ class FakeApi
|
||||
/**
|
||||
* Operation testCodeInjectEnd
|
||||
*
|
||||
* To test code injection ' \" =end
|
||||
* To test code injection *_/ ' \" =end
|
||||
*
|
||||
* @param string $test_code_inject____end To test code injection ' \" =end (optional)
|
||||
* @param string $test_code_inject____end To test code injection *_/ ' \" =end (optional)
|
||||
* @return void
|
||||
* @throws \Swagger\Client\ApiException on non-2xx response
|
||||
*/
|
||||
@@ -120,9 +120,9 @@ class FakeApi
|
||||
/**
|
||||
* Operation testCodeInjectEndWithHttpInfo
|
||||
*
|
||||
* To test code injection ' \" =end
|
||||
* To test code injection *_/ ' \" =end
|
||||
*
|
||||
* @param string $test_code_inject____end To test code injection ' \" =end (optional)
|
||||
* @param string $test_code_inject____end To test code injection *_/ ' \" =end (optional)
|
||||
* @return Array of null, HTTP status code, HTTP response headers (array of strings)
|
||||
* @throws \Swagger\Client\ApiException on non-2xx response
|
||||
*/
|
||||
|
||||
@@ -12,12 +12,12 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Swagger Petstore ' \" =end
|
||||
* Swagger Petstore *_/ ' \" =end
|
||||
*
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ ' \" =end
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ *_/ ' \" =end
|
||||
*
|
||||
* OpenAPI spec version: 1.0.0 ' \" =end
|
||||
* Contact: apiteam@swagger.io ' \" =end
|
||||
* OpenAPI spec version: 1.0.0 *_/ ' \" =end
|
||||
* Contact: apiteam@swagger.io *_/ ' \" =end
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
||||
@@ -11,12 +11,12 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Swagger Petstore ' \" =end
|
||||
* Swagger Petstore *_/ ' \" =end
|
||||
*
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ ' \" =end
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ *_/ ' \" =end
|
||||
*
|
||||
* OpenAPI spec version: 1.0.0 ' \" =end
|
||||
* Contact: apiteam@swagger.io ' \" =end
|
||||
* OpenAPI spec version: 1.0.0 *_/ ' \" =end
|
||||
* Contact: apiteam@swagger.io *_/ ' \" =end
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
||||
@@ -11,12 +11,12 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Swagger Petstore ' \" =end
|
||||
* Swagger Petstore *_/ ' \" =end
|
||||
*
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ ' \" =end
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ *_/ ' \" =end
|
||||
*
|
||||
* OpenAPI spec version: 1.0.0 ' \" =end
|
||||
* Contact: apiteam@swagger.io ' \" =end
|
||||
* OpenAPI spec version: 1.0.0 *_/ ' \" =end
|
||||
* Contact: apiteam@swagger.io *_/ ' \" =end
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -102,7 +102,7 @@ class Configuration
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $host = 'https://petstore.swagger.io ' \" =end/v2 ' \" =end';
|
||||
protected $host = 'https://petstore.swagger.io *_/ ' \" =end/v2 *_/ ' \" =end';
|
||||
|
||||
/**
|
||||
* Timeout (second) of the HTTP request, by default set to 0, no timeout
|
||||
@@ -522,7 +522,7 @@ class Configuration
|
||||
$report = 'PHP SDK (Swagger\Client) Debug Report:' . PHP_EOL;
|
||||
$report .= ' OS: ' . php_uname() . PHP_EOL;
|
||||
$report .= ' PHP Version: ' . phpversion() . PHP_EOL;
|
||||
$report .= ' OpenAPI Spec Version: 1.0.0 ' \" =end' . PHP_EOL;
|
||||
$report .= ' OpenAPI Spec Version: 1.0.0 *_/ ' \" =end' . PHP_EOL;
|
||||
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
|
||||
|
||||
return $report;
|
||||
|
||||
@@ -12,12 +12,12 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Swagger Petstore ' \" =end
|
||||
* Swagger Petstore *_/ ' \" =end
|
||||
*
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ ' \" =end
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ *_/ ' \" =end
|
||||
*
|
||||
* OpenAPI spec version: 1.0.0 ' \" =end
|
||||
* Contact: apiteam@swagger.io ' \" =end
|
||||
* OpenAPI spec version: 1.0.0 *_/ ' \" =end
|
||||
* Contact: apiteam@swagger.io *_/ ' \" =end
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -47,7 +47,7 @@ use \ArrayAccess;
|
||||
* ModelReturn Class Doc Comment
|
||||
*
|
||||
* @category Class */
|
||||
// @description Model for testing reserved words ' \" =end
|
||||
// @description Model for testing reserved words *_/ ' \" =end
|
||||
/**
|
||||
* @package Swagger\Client
|
||||
* @author http://github.com/swagger-api/swagger-codegen
|
||||
@@ -167,7 +167,7 @@ class ModelReturn implements ArrayAccess
|
||||
|
||||
/**
|
||||
* Sets return
|
||||
* @param int $return property description ' \" =end
|
||||
* @param int $return property description *_/ ' \" =end
|
||||
* @return $this
|
||||
*/
|
||||
public function setReturn($return)
|
||||
|
||||
@@ -12,12 +12,12 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Swagger Petstore ' \" =end
|
||||
* Swagger Petstore *_/ ' \" =end
|
||||
*
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ ' \" =end
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ *_/ ' \" =end
|
||||
*
|
||||
* OpenAPI spec version: 1.0.0 ' \" =end
|
||||
* Contact: apiteam@swagger.io ' \" =end
|
||||
* OpenAPI spec version: 1.0.0 *_/ ' \" =end
|
||||
* Contact: apiteam@swagger.io *_/ ' \" =end
|
||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -264,7 +264,7 @@ class ObjectSerializer
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
} elseif (in_array($class, array('void', 'bool', 'string', 'double', 'byte', 'mixed', 'integer', 'float', 'int', 'DateTime', 'number', 'boolean', 'object'))) {
|
||||
} elseif (in_array($class, array('integer', 'int', 'void', 'number', 'object', 'double', 'float', 'byte', 'DateTime', 'string', 'mixed', 'boolean', 'bool'))) {
|
||||
settype($data, $class);
|
||||
return $data;
|
||||
} elseif ($class === '\SplFileObject') {
|
||||
|
||||
Reference in New Issue
Block a user