Thomas Hansen
9c2757b4e1
[PHP] Reverted extra blank lines accidentally added by #13012 commit ( #13717 )
2022-10-17 22:36:19 +08:00
Thomas Hansen
a37d18a7e4
[PHP] Bugfix: DateTime object on query ( #13583 )
...
* [PHP] BUGFIX: fix code breaking when query params contain a DateTime object
* [PHP] Autogenerated files
2022-10-07 00:45:33 +08:00
Thomas Hansen
efccc01911
[PHP] BUGFIX: model_generic: fix missing setOpenAPInullablesSetToNull method ( #13499 )
...
* [PHP] Bugfix - model_generic.mustache: missing setter for openAPINullabelsSetToNull (which is invoked in the property setters)
* [AUTOGENERATED] update samples
* [PHP] Added test for nullable fields
2022-09-26 17:20:51 +08:00
William Cheng
ac7ebf67dd
Prepare 6.2.1 ( #13517 )
...
* update to 6.2.1-SNAPSHOT
* update samples
* update doc
2022-09-25 00:10:30 +08:00
William Cheng
24f476a381
prepare 6.2.0 release ( #13514 )
...
* set release version to 6.2.0
* update samples
* comment out rust server test in travis
2022-09-24 21:44:42 +08:00
Linus Klöckner
6a7567e7cb
PHP: fix ranged status codes ( #13012 )
...
* PHP: fix ranged status codes
* PHP: update samples
2022-09-21 00:21:46 +08:00
James Gilliland
abe8c74a3a
Fix php generators treating double as a native type ( #13421 )
...
* Fix php generators treating double as a native type
Fixes #13335
* Remove double handling in enum
* Add missed double type removal
2022-09-15 17:16:19 +08:00
William Cheng
928070c57a
Prepare 6.1.1 SNAPSHOT version ( #13399 )
...
* prepare v6.1.1
* update samples
* update doc
2022-09-11 19:08:23 +08:00
William Cheng
43dbb5ff9c
6.1.0 release ( #13398 )
2022-09-11 17:16:07 +08:00
devhl-labs
7e4fa70067
Update allOf to not always be nullable ( #12861 )
...
* added nonNullableVars
* added return property to operation
* added return property to operation
* build samples
* added inner enum
* build samples
* allOf no longer always nullable
* added a comment
2022-08-16 00:47:51 +08:00
Thomas Hansen
1e3a39b460
[PHP] Add support for server variables in operations ( #12982 )
...
* [FEATURE] Support for server variables in operations
* [AUTOGENERATED] update samples
* [PHP] Added tests for server variables in operations
2022-08-04 00:15:51 +08:00
Thomas Hansen
7c7ac2f0d3
[PHP] double curly braces bugfix ( #12999 )
...
* [PHP] Small bugfix: fix punctual double curly bracket usage, to make it consistent with the code around
* [AUTOGENERATED] update samples
2022-07-24 09:18:48 +08:00
Thomas Hansen
c0ad6357df
[PHP] ObjectSerializerTest: add tests for ObjectSerializer::deserialize() associative arrays bugfix ( #12989 )
...
* [PHP] ObjectSerializerTest.php: code cleanup
* [PHP] ObjectSerializerTest.php: added tests for ::deserialize() associative arrays bugfix - related to PR #12849
2022-07-23 10:07:21 +08:00
William Cheng
c26e19cbc0
Revert "Add support for string response deserialization ( #12910 )"
...
This reverts commit b8524bee232a55e28693354ab543b91e3f65629a.
2022-07-21 12:58:46 +08:00
Emanuele Saccomandi
b8524bee23
Add support for string response deserialization ( #12910 )
...
* Add support for string response deserialization
* updated samples
* updated samples
* realigned to master
* fix: errors were not getting thrown
* updated samples
* fix: errors were not getting thrown
* updated samples
2022-07-21 12:45:50 +08:00
Thomas Hansen
e2b9f39b19
[PHP] ObjectSerializer::deserialize() associative arrays bugfix ( #12849 )
...
* [PHP] ObjectSerializer::deserialize(): fix bug with json_encode
* [AUTOGENERATED] update samples
2022-07-16 17:21:42 +08:00
Thomas Hansen
cd48db43b4
[PHP] Add support to nullable (based on #3493 ) ( #12794 )
...
* [PHP] Add support to nullable (based on PR 3493)
* [AUTOGENERATED] update samples
2022-07-12 00:00:39 +08:00
Thomas Hansen
1a44a5284a
[PHP] Fix message for InvalidArgumentException(), when failing to test pattern ( #12780 )
...
* [BUGFIX] model_generic.mustache: Display property name instead of its value, when throwing InvalidArgumentExeption() for values not respecting a given pattern
* [AUTOGENERATED] Generated files
2022-07-07 01:17:22 +08:00
William Cheng
6cae0fbb78
Merge remote-tracking branch 'origin/6.1.x'
2022-07-04 01:22:51 +08:00
William Cheng
9e412edb64
Prepare 6.0.1 release ( #12762 )
...
* update to v6.0.1
* update doc
* update samples
2022-07-03 23:36:46 +08:00
William Cheng
8f3dd48772
update samples, docs
2022-06-06 12:20:21 +08:00
Ion Bazan
5bd3694927
fix @implements annotations in PHP client ( #11908 )
2022-06-06 12:08:46 +08:00
William Cheng
5bd94b8fa0
prepare 6.1.x
2022-05-26 12:58:25 +08:00
William Cheng
36a9cf394d
update samples ( #12466 )
2022-05-26 12:13:59 +08:00
William Cheng
69f79fb789
Prepare 6.0.0 release ( #12463 )
...
* prepare 6.0.0 release
* update samples
* update meta codegen
2022-05-26 10:28:01 +08:00
Kuzma
45cbd5f7a7
[Php] Convert boolean value for query string (Configuration) ( #12385 )
...
* convert bool to query string format
* add variable
* update samples
* add test
2022-05-25 10:36:21 +08:00
Yuriy Belenko
023f4e760b
[php] Bump required PHP version to 7.4 ( #12359 )
...
* Bump minimal PHP version to 7.4
* Refresh samples
2022-05-15 17:28:31 +08:00
William Cheng
12cdacabbf
[Inline model resolver] better handling of inline responses and bug fixes ( #12353 )
...
* better handling of inline response schemas, bug fixes
* update samples
* add new files
* better code format
* remove unused ruby files
* fix java test
* remove unused js spec files
* remove inline_response_default_test.dart
* fix webclient tests
* fix spring tests
2022-05-13 10:17:59 +08:00
Yuriy Belenko
e639dad66a
[php] Add PSR-12 rule set ( #12302 )
...
* Upgrade PHPCS-Fixer to 3.5 version
This version requires PHP 7.4 or 8.0 which perfectly meets our supported
PHP right now.
* Rename config file to .php-cs-fixer.dist.php
This way it can be overwritten with local file(same name without "dist"
part). Also it's recommended filename from the package doc.
* Add PSR12 rule set to config
I've changed config file a bit to look like example from the doc.
Ref: https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/HEAD/doc/config.rst
* Ignore new cache format
* Remove blank line after class opening
* Set constants in models public
* Refresh samples
2022-05-10 00:34:38 +08:00
Kuzma
6b3abd9421
[Php] Exclude query params when they're not required ( #12120 )
...
* exclude query params when they are not required
* fix check on empty
* update samples
* fix
* add tests
* update test
* Fix style
I guess PHPCodeSniffer would find PSR12 violated but we use CS-Fixer
instead. Anyway, conditions should contain spaces between logical
operators for readability.
* Apply CS-Fixer changes to templates
* Refresh samples
* Add required param to docblock
Co-authored-by: Yuriy Belenko <yura-bely@mail.ru>
2022-04-25 18:16:00 +08:00
William Cheng
8e49875871
update samples, docs
2022-04-24 15:38:16 +08:00
adessoDpd
1602942292
[Wsdl] Adding cli-option for generating different versions of WSDL-files regarding Media type versioning (content negotiation) ( #12206 )
...
* add wsdl version generation
* add option to use specified operationId
* update samples
* update cli description
2022-04-24 15:29:09 +08:00
William Cheng
67b659f47e
update php samples
2022-04-20 14:06:34 +08:00
fengelniederhammer
8a83a34bb4
[php] make ObjectSerializer::toString actually return a string ( #12158 )
2022-04-20 14:02:09 +08:00
William Cheng
8330e16d66
Better inline model resolver to handle inline schema in array item ( #12104 )
...
* better support of inline schema in array item
* update tests
* update samples
* regenerate samples
* fix allof naming, remove files
* add files
* update samples
* update readme
* fix tests
* update samples
* update samples
* add new files
* update test spec
* add back tests
* remove unused files
* comment out python test
* update js test using own spec
* remove files
* remove unused files
* remove files
* remove unused files
* better handling of allOf with a single type
* comment out go test
* remove test_all_of_with_single_ref_single_ref_type.py
* fix inline resolver, uncomment go test
2022-04-20 10:28:15 +08:00
Peter Leibiger
478ed9b8ed
Add a sample of an enum model array in query params ( #12107 )
2022-04-12 13:53:51 +08:00
Peter Leibiger
15e9d4ed8c
Add example allOf with single ref ( #10948 )
...
* Add example allOf with single ref
* fix dart-dio-next handling of that case
* Refactor without vendor extension
* Regenerate newer samples
2022-04-12 13:52:53 +08:00
William Cheng
2d4a01aa70
Revert "Prepare 6.0.0 beta release ( #12039 )"
...
This reverts commit 914b539eea7097ad2b4323d20c8f95144782cb68.
2022-04-04 12:17:12 +08:00
William Cheng
914b539eea
Prepare 6.0.0 beta release ( #12039 )
...
* update to 6.0.0-beta
* update samples
2022-04-04 10:29:49 +08:00
Yuriy Belenko
b3079f0848
Switch expected and actual params in PHPUnit tests ( #11992 )
2022-03-29 13:45:16 +08:00
Yuriy Belenko
9ce3d2bc3e
Fix form serialization typo from #11225 ( #11990 )
2022-03-29 13:06:04 +08:00
Yuriy Belenko
956ad2aecc
[php] Fix JSON object deserialization ( #8481 )
...
* Fix JSON object deserialization
* Revert "Fix JSON object deserialization"
This reverts commit 42a4637e53020d8d3e921f72bc66de9d4ccd8151.
* Add JSON body decoding before deserialize call
* Add two more json_decode calls
Co-authored-by: Thomas Hansen <thomas@thomasphansen.dk>
2022-03-28 11:09:37 +08:00
Basil
196b9f266f
[php] use http_build_query for deepObject support ( #11225 )
...
* Update ObjectSerializer::toQueryValue method
It looks a bit ugly right now, but at least all tests has been passed.
* Add tests of query serialization
I used fixtures from OpenAPISpec main doc. Some prop combinations are not
officially documented yet, for instance behavior for nested objects and
arrays.
* Add test fixture from @nadar
* Add tests of Guzzle query build failure
* Add query build wrapper static method
Co-authored-by: Yuriy Belenko <yura-bely@mail.ru>
2022-03-22 12:56:15 +03:00
satackey
213828d01b
[PHP] Fix deprecations in PHP 8.1 ( #11743 )
...
* Fix deprecations in PHP 8.1
* Use `bool` type instead of boolean
2022-03-15 16:20:05 +03:00
William Cheng
df05e6f4bc
Update parser to 2.0.29 ( #11388 )
...
* update parser to 2.0.29
* better handling of null in dereferencing
* update parser to 2.0.30
* update core to newer version
* add new files
* rollback to previous stable version
* remove files
* Fixes for python-experimental NullableShape component
Co-authored-by: Justin Black <justin.a.black@gmail.com>
2022-02-21 18:37:52 +08:00
Juan Treminio
905e59c238
[PHP] Allows passing filename to deserialize ( #11582 )
...
* Allows passing filename to deserialize
* Code review changes
2022-02-14 17:38:16 +08:00
Juan Treminio
15501f10c4
[PHP] Fix checking value of Configuration::getAccessToken()
( #11486 )
...
* Prevents empty access token from overriding basic auth
2022-02-10 11:01:16 +03:00
William Cheng
c8b84c4d03
Merge remote-tracking branch 'origin/master' into 6.0.x
2022-01-30 18:01:35 +08:00
Andreas Allacher
ef882a4e6c
Issue 11152: Allow guzzlehttp/psr7 ^1.7 or ^2.0 ( #11240 )
2022-01-07 09:07:09 +08:00
Yuriy Belenko
0a09f1faa3
[php][bug] Fix DateTime microseconds bug in ObjectSerializer ( #11213 )
...
* fixing precision for php
* remove a bracket
* handling whitespace
* format comment
* Use regexp to trim needless microseconds
That way we can save timezone suffix.
Co-authored-by: Carmen Quan <cquan@launchdarkly.com>
2022-01-04 13:41:22 +08:00