Jérémie Bresson
1e5e1d4458
Prepare 3.0.1-SNAPSHOT ( #195 )
...
* Restore version to 3.0.0-SNAPSHOT
* Set version to 3.0.1-SNAPSHOT
* Run ensure-up-to-date
* Remove duplicated version declaration
2018-06-02 10:57:33 +08:00
Mads Føhns
3beeb4e777
#126 : Not-required properties now shows as nullable ( #129 )
2018-05-28 21:33:55 +08:00
Akihito Nakano
6f23b5061a
Add PHP scripts to bin/ensure-up-to-date
( #155 )
...
* Add PHP scripts
* Run php-petstore.sh (OAS2,3)
2018-05-26 12:46:47 +09:00
William Cheng
b3f3eabc72
remove php old files, fix php folder in pom ( #423 )
2018-05-11 20:51:24 +08:00
William Cheng
e5be838fa8
Update PHP client default value ( #417 )
...
* update php default value
* update php samples with oas3
2018-05-11 15:28:09 +08:00
Akihito Nakano
872dd546f4
Update php related samples ( #375 )
...
* Update php client (OAS3)
bin/openapi3/php-petstore.sh
* Update symfony server (OAS2)
bin/php-symfony-petstore.sh
* Lumen: remove 'swagger'
* Update lumen server (OAS2)
* Update php client (security): deleted 'SwaggerClient-php' folder
* Update TEST_DIR
* Update php client tests (OAS3)
bin/openapi3/php-petstore.sh
* Update php client (OAS2)
bin/php-petstore.sh
* Fix
* Fix lumen -> php-lumen
* Update lumen server (security)
* Delete moved files
currently it will generate into under 'lib' folder.
* Fix slim -> php-slim
* Update slim server (security)
bin/security/slim-petstore-server.sh
* Fix
* Update dot files
2018-05-09 10:34:19 +08:00
Jérémie Bresson
059a3efe46
Regenerate samples ( #367 )
2018-05-08 16:44:51 +08:00
Akihito Nakano
376d9af9c0
Rename default packages for php client ( #315 )
...
* Rename default packages for php client
* Generate php client (OAS3)
* Rename namespace for tests
* Delete unnecessary 'use'
* Rename method/variable
* Update php client (OAS3)
* Generate php client (OAS2)
* Rename namespace for tests
* Delete unused files
* Fix tests
2018-05-07 23:04:06 +08:00
Akihito Nakano
be19724849
Fix default value ( #260 )
...
* Fix missing default value of form param
* Update php sample with OAS2
* Update php sample with OAS3
* Delete quotes as default value may have integer
* Update php samples with OAS2
* use toDefaultValue() in order to apply the decoration rules of generator
* Update php samples with OAS2
* Tweak: add quotes only if example is null
* Update php sample with OAS2
* Update php sample with OAS3
2018-04-30 17:18:58 +08:00
Akihito Nakano
aa5719e008
Fix missing default value ( #257 )
...
* Fix missing default value of form param
* Update php sample with OAS2
* Update php sample with OAS3
2018-04-30 16:24:07 +08:00
Akihito Nakano
7b6e17e02d
Fix missing models ( #250 )
...
* ArraySchema should not be included in aliases
* Update php sample (OAS2)
2018-04-28 11:37:45 +08:00
William Cheng
e1a0355398
Update PHP samples with OAS2 before enabling CI test ( #230 )
...
* update php samples with oas2 before enabling ci test
* deleted unused php files
2018-04-26 13:17:16 +08:00
Jérémie Bresson
7ecd5f3566
Rename "swagger" to "openapi" ( #191 )
...
* Rename ".swagger-codegen-ignore" to ".openapi-generator-ignore"
* Rename setGenerateSwaggerMetadata(Boolean) to setGenerateMetadata(Boolean)
* Rename Metadata Folder to .openapi-generator
2018-04-22 21:28:17 +02:00
Akihito Nakano
1f0bed2a0c
Update php client with OAS2 ( #149 )
...
* Update php client with petstore OpenAPI v2 spec
bin/php-petstore.sh
* Change order of arguments according to the changes that auto-generated codes
* Fix 'FakeHttpClient not found' error
It has occured when run the test case separately like below.
"vendor/bin/phpunit tests/RequestTest.php"
* Update assertion according to a change on spec
* Update assertion
2018-04-21 18:13:45 +08:00
Jeremie Bresson
53597764c3
Add OpenAPI spec 3.0 support (beta)
...
Co-authored-by: Akihito Nakano <sora.akatsuki@gmail.com>
Co-authored-by: Jeremie Bresson <dev@jmini.fr>
Co-authored-by: Jim Schubert <james.schubert@gmail.com>
Co-authored-by: Martin Delille <martin@phonations.com>
Co-authored-by: Tomasz Prus <tomasz.prus@gmail.com>
Co-authored-by: William Cheng <wing328hk@gmail.com>
2018-04-17 09:19:10 +02:00
Akihito Nakano
32cf2f16f5
[PHP] Non required enum property ( #7723 )
...
* Add required enum property
* Update samples
* Add test case which reproduce the problem
refs https://github.com/swagger-api/swagger-codegen/pull/7686#issuecomment-368200011
> 2. Non-required enum property is listed as invalid when omitted
* If the property is not empty, perform validation
* Update samples
* Use is_null() according to setter implementation
refs 377247f125/modules/swagger-codegen/src/main/resources/php/model_generic.mustache (L347)
* Update samples
2018-03-08 21:54:34 +08:00
Paul Vogel
3bcf0ff764
[PHP] Add path & file separator (/) to return the correct path when deserializing a file ( #7671 )
...
* Add path & file separator (/) to return the correct path
Add the separator between the tempFolderPath and the sanitized filename so that the path to the file is correct.
(Fixes #7670 )
* Remove separator from generated file
* Add separator
Add the separator between the tempFolderPath and the sanitized filename so that the path to the file is correct.
(Fixes #7670 )
* Update sample code
Via ./bin/php-petstore.sh
2018-03-05 10:32:47 +08:00
Akihito Nakano
91bd7ac3b9
[PHP] Run unit tests on 'tests' directory ( #7675 )
...
* Run unit tests on 'tests' directory
* Fix: move argument to <argument>
2018-02-22 17:31:47 +08:00
Akihito Nakano
be14e02875
[PHP] Cleanup test ( #7673 )
...
* Regenerate PetApiTest, OrderTest
The same test code as deleted is in the 'tests' directory.
* Move test code 'test' -> 'tests', and Regenerate test/Model/PetTest.php
* Regenerate 'test' directory
rm -rf samples/client/petstore/php/SwaggerClient-php/test && bin/php-petstore.sh
2018-02-22 17:31:18 +08:00
Akihito Nakano
14e1e19803
[PHP] Improve validation on empty arrays ( #7686 )
...
* Api should throw exception if an empty array is passed
* Update samples
- bin/php-petstore.sh
- bin/security/php-petstore.sh
2018-02-22 17:15:00 +08:00
Jens Radtke
76907cacde
fix: declare property headerSelector ( #7495 )
...
The property was created dynamically, it's a more clean approach to
declare it as a member of the class.
2018-01-26 00:49:35 +08:00
Akihito Nakano
809e1f4c93
[PHP] Cleanup tests ( #7333 )
...
* Regenerate test/UserApiTest.php
The same implementation as testLoginUser() is in tests/UserApiTest.php
* Delete test/Client/ObjectSerializerTest.php
The same implementation is in tests/ObjectSerializerTest.php
* Update Petstore sample
- bin/php-petstore.sh
- bin/security/php-petstore.sh
2018-01-14 17:47:08 +08:00
Akihito Nakano
4e5ec4c71c
[PHP] Cleanup StoreApiTest ( #7248 )
...
* Move test codes in "test" to "tests".
* Simplify class name specification
* Regenerate test/Api/StoreApiTest.php
testGetInventory already exists in tests/StoreApiTest.php
2018-01-07 11:46:31 +08:00
Akihito Nakano
50d217894c
[PHP] Cleanup EnumTest ( #7282 )
...
* Move test codes in "test" to "tests"
- EnumClassTest
- EnumTestTest
* Regenerate test/Model/Enum(Class|Test)Test.php
2018-01-07 11:42:44 +08:00
Akihito Nakano
fa9fc4b45b
Delete ApiClient ( #7305 )
2018-01-07 11:34:17 +08:00
Akihito Nakano
fa3e72e6e3
[PHP] Cleanup AnimalFarmTest ( #7279 )
...
* Move test codes in "test" to "tests"
* Regenerate test/Model/AnimalFarmTest.php
2018-01-07 11:21:53 +08:00
wing328
e7b97383d1
update php petstore samples
2017-12-09 17:32:45 +08:00
Akihito Nakano
cfa5a55a28
[PHP] Improve StoreApiTest ( #7141 )
...
* Move the test code to the appropriate test case
* currently, InvalidArgumentException will be thrown
* Remove unnecessary tests at this time
* Unify into single quotes
2017-12-09 17:01:25 +08:00
wing328
365f3a923b
update php petstore samples
2017-12-08 00:32:53 +08:00
Akihito Nakano
1ff3b00ac5
[PHP] Add generator version ( #7124 )
...
* Add generator version
* Update samples
- bin/php-petstore.sh
- bin/security/php-petstore.sh
2017-12-08 00:02:52 +08:00
Akihito Nakano
9ca9887de4
[PHP] Improve docs and README ( #6935 )
...
* Fix wrong client class, add details about client
* Improve example for Configuration
* camelcase
* Improve README like api doc
* Update samples
2017-11-13 13:56:45 +08:00
Alexandre Demode
63d28cf75b
Fix PHP passes response body to ApiException ( #6923 )
2017-11-13 11:30:46 +08:00
Akihito Nakano
e8635632a4
[PHP] Fix #6770 : Debug flag is not passed ( #6808 )
...
* Add testcase which reproduces issue #6770
* Pass debug option if needed
* Update samples
* bin/php-petstore.sh
* bin/security/php-petstore.sh
* Api throws exception when failed to open debug file
* Pass debug option if needed (Async)
* Extract instance method
* Update samples
* bin/php-petstore.sh
* bin/security/php-petstore.sh
2017-11-02 17:14:00 +08:00
Akihito Nakano
07b408a44a
[PHP] Fix #5338 : InvalidArgumentException ( #6685 )
...
* Add endpoint definition which reproduces #5338 bug
* Update samples
* Add test case which reproduces #5338 bug
* Fix "InvalidArgumentException: Invalid resource type: object"
* Update samples
- ./bin/php-petstore.sh
- ./bin/security/php-petstore.sh
2017-10-17 21:22:49 +08:00
wing328
2d44d7f291
use parameter name as description if not defined ( #6557 )
2017-09-24 21:18:49 +08:00
Akihito Nakano
b31a80448a
[PHP] Improve Api template ( #6507 )
...
* Improve spacing in doc comment
* Improve grouping of parameter tags
* Improve line length
* Fix undefined variable $_tempBody
* Improve indent
2017-09-24 15:40:06 +08:00
Alex
ac99fe6b2d
fix #6353 ( #6514 )
2017-09-24 14:47:40 +08:00
Akihito Nakano
8f8515486f
[PHP] Improve Model template ( #6460 )
...
* Update samples
./bin/php-petstore.sh
* Remove unnecessary implements entry
ModelInterface, ArrayAccess are already implemented in parent
* Remove field `container` which is already defined in parent
* Change snake case to lower camel case
- invalid_properties
- allowed_values
* Improve doc commenct style
* Improve description length
* Improve length
* Doc comment short description must start with a capital letter
* Add a line between @param and @return
* Delete an additinal blank line at end of doc comment
* Udpate petstore-security-test
2017-09-23 21:36:05 +08:00
Akihito Nakano
594b390e11
[PHP] Fix #6474 : Bug with 'format: date' when using --model-name-prefix ( #6510 )
...
* Add test case which repeats the issue #6474
* Add "date" to type mapping
* Update samples
./bin/php-petstore.sh
./bin/security/php-petstore.sh
2017-09-19 18:07:37 +08:00
wing328
591149bcb7
Better logic to handle tags with special characters ( #6466 )
...
* better logic to handle tag with special characters
* update test cases
* comment out swift test cases
* restore the swift tests
2017-09-12 11:41:14 +08:00
Alex
4eab5406c5
Added ModelInterface for PHP Models ( #6331 )
...
All Model classes include a set of methods - it makes sense to align them to a concrete interface to improve strict typing when referencing these models.
2017-09-05 22:22:18 +08:00
wing328
c1f5de91bb
add comment, update ruby, php samples
2017-09-03 23:20:55 +08:00
Manuel Kiessling
105fe4958e
[php] Fixed typo in codedocs (Swaagger -> Swagger). ( #6299 )
2017-08-12 21:36:19 +08:00
wing328
54d00084f7
update php, ruby petstore
2017-08-02 23:38:46 +08:00
wing328
e964702550
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-07-12 21:54:23 +08:00
serezha93
140826b47f
minor fixes ( #5981 )
...
* Update configuration.mustache
added return tag in PHPDoc
* made sanitizeFilename as static method
* updated petstore
2017-07-09 16:23:18 +08:00
Akihito Nakano
4612c12560
[PHP] Add support for async requests ( #5771 )
...
* Add xxxAsyncWithHttpInfo
* Add xxxAsync
* Tweak doc comment
* apply DRY principle to the creation process for request
* Fix undefined variable $statusCode
* error handling
* Fix undefined variable $url
* Tweak syntax
* Update samples
run './bin/php-petstore.sh'
* Update samples (security)
run './bin/security/php-petstore.sh'
* Fix doc comment
xxx(Async|AsyncWithHttpInfo) returns \GuzzleHttp\Promise\PromiseInterface
* Update samples (./bin/php-petstore.sh)
* Update samples (./bin/security/php-petstore.sh)
* Add AsyncTest
2017-06-07 20:35:28 +08:00
wing328
87bbbc1a1b
Merge remote-tracking branch 'origin/master' into 230_merge_master
2017-06-05 23:27:11 +08:00
Arne Jørgensen
d5b3cc0534
[PHP] Fix date
format serialization ( #5754 )
...
* [PHP] Honor Swagger/OpenAPI 'date' format
Per spec
(https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types ),
DateTime instances defined as 'date' datatype need to be serialized as
defined by full-date - RFC3339, which has the format:
full-date = date-fullyear "-" date-month "-" date-mday
ref:
https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14
see #5531
fixes #5607
* [PHP] Add `date` and `date-time` serializer tests
See #5531
See #5607
* [PHP] Improve codestyle of generated code
* [PHP] Regenerate PHP Petstore sample
* [PHP] Regenerate PHP Security sample
2017-06-05 00:47:56 +08:00
baartosz
d7202a7c76
[php] 2.3 - fix form params json encoding ( #5701 )
...
* fixed tests expectations not compatible with phpunit 4
* added test and endpoint definition, updated template
* regenerated sample
* regenerated security sample
2017-06-05 00:36:40 +08:00