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
Vincent Giersch
aef98f464e
fix(php): should not check enum value if not unspecified and optional (broken since #4886 ) ( #5357 )
...
Signed-off-by: Vincent Giersch <vincent@giersch.fr>
2017-04-10 23:21:14 +08:00
Paŭlo Ebermann
7462cf70cf
Updating security samples for PHP client. ( #5293 )
2017-04-04 14:42:01 +08:00
Ainun Nazieb
05eea2436c
[PHP] Validate parent's model first, if any ( #4659 )
...
* if model has parent, valid() & listInvalidProperties() will check the parents' first
* Run the ./bin/security/php-petstore.sh
2017-01-26 22:49:38 +08:00
Robert Biehl
1ea9865a44
[PHP] Fix discriminator handling ( #4246 )
...
* [PHP] Fix discriminator handling
* [PHP] Fix discriminator handling (Update examples)
2016-11-25 16:12:41 +08:00
Ville Skyttä
91b7494e3e
Spelling fixes
2016-09-06 14:45:04 +03:00
Arne Jørgensen
0f8e1f8105
[PHP] Client properties validation #3457 ( #3480 )
...
* [PHP] Avoid validation of unset, optional parameters
Fixes #3457 .
* [PHP] Regenerate petstore samples
2016-08-01 15:24:47 +08:00
wing328
394840e352
Add more security samples ( #3344 )
...
* add line break test to petstore-security-test.yaml
* add objc/swift security testing
* add go,scala,qt5cpp for security test
* add security test for typescript
* fix go security issue, fix consumes,produces line break
2016-07-12 19:51:28 +08:00
Daniel Ge
20448dd9e3
Bump and regenerate PHP sample
2016-07-06 12:09:11 -07:00
wing328
2464633368
better handling of multiline comments for all lang
2016-07-02 16:25:55 +08:00
Arne Jørgensen
a4ec29000a
[PHP] Regenerate petstore samples
2016-06-30 07:12:28 +02:00
wing328
f38c8373cc
create new spec for security testing
2016-06-28 11:48:52 +08:00