Akihito Nakano
|
d58835e571
|
[PHP] Improve: Make validation strict (#7724)
* Add test case which reproduce the problem
refs https://github.com/swagger-api/swagger-codegen/pull/7686#issuecomment-368200011
> 1. We should pass true as 3rd argument of in_array()
* Add test case for setter
* Strict validation
* Update samples
* Tweak expected value according to changes in #7723
|
2018-03-25 23:17:46 +08: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 |
|
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 |
|