William Cheng
c596bb7d8a
add check for optionl to show null in doc (php) ( #22307 )
2025-11-08 23:12:27 +08:00
Achton Smidt Winther
fb444bf15e
[php] Fix PHP generator validation for nullable required properties ( #22292 )
...
* [php] Fix null+required properties to accept null values in generated models. Also fix PHP annotations related to same.
* [php] Update samples.
2025-11-08 22:28:37 +08:00
William Cheng
f9d2b8b579
Prepare v7.18.0 release ( #22250 )
...
* Revert "v7.17.0 release (#22248 )"
This reverts commit 0120486e6207b41cdd18b89eaf25f061ac87195a.
* prepare v7.18.0 release
* update samples
* update doc
2025-10-30 01:25:35 +08:00
Eddie Sholl
68b0dfe6d1
Expose mtls certificate config params in python and php configuration templates ( #22229 )
...
* Expose mtls config params in python template
* Expose certFile and keyFile configuration items to support mtls in php generated client
* Regenerate of examples
2025-10-28 12:33:05 +08:00
Simon Podlipsky
5f13c53825
fix(php,php-nextgen): remove useless string cast from ObjectSerializer.mustache ( #22121 )
2025-10-14 13:14:02 +08:00
William Cheng
4121803442
update php samples
2025-10-03 10:02:59 +08:00
William Cheng
885ea07b17
Prepare 7.17.0 ( #22040 )
...
* Revert "v7.16.0 release"
This reverts commit 31299af0fcaafe6c3ab848320e230a00ce8ea9e5.
* prepare 7.17.0-SNAPSHOT
* update doc, samples
2025-09-28 17:25:13 +08:00
William Cheng
399547c2ba
update php samples
2025-08-28 15:53:49 +08:00
William Cheng
20be2decde
Prepare v7.16.0 release ( #21794 )
...
* Revert "v7.15.0 release (#21792 )"
This reverts commit 2c816f89cbd6c4670aaf6e3387c88daadae6cbad.
* prepare 7.15.0 release
* update samples
2025-08-22 19:17:23 +08:00
William Cheng
2f70572219
update samples
2025-07-28 20:24:46 +08:00
P.H. Knot
86052aa989
fix: Use correct constructor for ApiException in PSR-18 PHP library ( #21631 )
...
* fix: Use correct constructor for ApiException
* chore: Generate samples
* fix: Missing $
* fix: Remove extraneous line
2025-07-28 20:19:59 +08:00
William Cheng
3453c7ba10
Test PHP clients in Github workflow ( #21643 )
...
* test php clients in github workflow
* trigger build failure
* update workflow
* Revert "trigger build failure"
This reverts commit 572a69f6bcbab426103c77de55c069bd74b5e7fb.
* update tests
* update tests
* update test
* fix tests
* fix async test
* update tests
2025-07-28 18:33:52 +08:00
Simon
d69714f197
[php] Fix file uploads by backporting #21458 ( #21632 )
...
* [php] Backport #21458 to php client
Fixes #21485
Credits to @jozefbriss
* [php] Fix deprecation warning when running integration tests
OpenAPI\Client\FakeHttpClient::setResponse(): Implicitly marking parameter $response as nullable is deprecated, the explicit nullable type must be used instead
---------
Co-authored-by: simonhammes <simonhammes@users.noreply.github.com>
2025-07-28 16:58:03 +08:00
William Cheng
046be5dba1
Prepare 7.15.0 ( #21445 )
...
* Revert "v7.14.0 release (#21443 )"
This reverts commit 5eb083e5ce1dd99659fadc03d7c6e809d3077af6.
* prepare v7.15.0 snapshot
* update samples
* update readme
* update doc
2025-06-25 21:34:58 +08:00
William Cheng
dbf720c093
Prepare 7.14.0 release ( #21159 )
...
* Revert "v7.13.0 release (#21157 )"
This reverts commit 4b805ff6b7ac5bd2557555810357569fe2677311.
* prepare v7.14.0 release
* update samples
2025-04-27 22:04:03 +08:00
Juan Treminio
346231083f
[PHP] - Add FormDataProcessor to handle nested ModelInterface data ( #20990 )
...
* [PHP] - Add FormDataProcessor to handle nested ModelInterface data
* Generating samples
* Updates php-nextgen and psr-18
* Adds tests
* Some more tests
* One last test
* Updating files
* Fixing diff
* Test fix
* Updating samples
2025-04-23 15:16:47 +08:00
Juan Treminio
6b13ad522f
[PHP] - Add range HTTP code support ( #20992 )
...
* [PHP] - Add range HTTP code support
* Adding response body to 200
* Fix diff; update php-nextgen sample
* Working on unit tests
* Removes dangling files
* Finalize tests
* Remove dangling files
* Add tests for no response body exception
2025-04-07 00:50:58 +08:00
Juan Treminio
c6e2a5fa94
[PHP] - Removes trailing comma from ::flattenArray() ( #20988 )
...
* [PHP] - Removes trailing comma from ::flattenArray()
* Removes "mixed" type
* Missed one mixed
2025-03-30 01:08:52 +08:00
Simon Podlipsky
62b176e95d
feat(php): drop support for EOLed PHP versions and unify min required version ( #17826 )
2025-03-24 13:59:01 +08:00
Juan Treminio
a4072c5ea9
[PHP] Bring PSR-18 composer.json inline with main ( #20897 )
...
* [PHP] PSR-18 composer.json to use composerPackageName
* Bring PSR-18 composer.json inline with main
2025-03-20 17:39:50 +08:00
Juan Treminio
8f24df4165
[PHP] Fix converting objects to formdata ( #20888 )
...
* Output of CLI commands per PR comments
* Rebuilding PHP examples, PSR-18
* Rebuilding PHP examples
* Adds explanation for ::flatten_array(); optimized array_is_list pollyfill
* [PHP] Fix converting objects to formdata
* flatten_array -> flattenArray to match code style
* Adds unit test
* Revert "Output of CLI commands per PR comments"
This reverts commit 2eaa93731c354c9cb64a41187ba25a1b271cfdea.
* Includes php-nextgen; tightens up ::toFormValue()
* Missing ArrayAccess import
* Adds test for refactored ObjectSerializer::toFormValue()
2025-03-19 15:39:57 +08:00
William Cheng
a79aad8420
Prepare 7.13.0 ( #20758 )
...
* Revert "v7.12.0 release"
This reverts commit 073723cb4d41187f839fbb46565d109293fa22d7.
* set version to v7.13.0-SNAPSHOT
* update samples
* update doc
2025-02-28 13:48:36 +08:00
William Cheng
1fa07bf46c
Prepare 7.12.0 ( #20512 )
...
* Revert "v7.11.0 release (#20508 )"
This reverts commit a7240eeefeedeefe7fc80ef22747dfc67e126324.
* prepare 7.12.0 snapshot version
* update samples
* update readme
2025-01-21 00:10:09 +08:00
John Vandenberg
eb47b9d836
Fix typos ( #20442 )
2025-01-11 15:44:42 +08:00
William Cheng
25283d46a7
Fix typo in various generators, templates ( #20389 )
...
* fix typo in various generators, templates
* update samples
2024-12-30 18:52:18 +08:00
Simon
9b3484cc99
[php] Set $multipart to true if content-type is multipart/form-data ( #5536 ) ( #18991 )
...
* [php] Set $multipart to true if content-type is multipart/form-data (#5536 )
Related: https://github.com/OpenAPITools/openapi-generator/issues/5536
* [php] Use isMultipart variable
---------
Co-authored-by: Simon Hammes <simonhammes@users.noreply.github.com>
2024-12-15 17:29:12 +08:00
martin-mfg
d87a70dd93
update sample tests, fix Java tests ( #20300 )
...
* replace removed forkMode
* remove junit runner where it's not needed
* update samples without skipping test files, but skip files named "FILES"
* revert overwriting custom tests, add custom java tests to list
* add one sample to CircleCI, fix various Java tests
2024-12-15 17:09:58 +08:00
Hiromi Hishida
474307675b
[php] Follow PHP8.4 update: declared nullable parameters explicitly ( #20243 )
...
* explictly declared nullable to parameters with "null" default value
* generated php sample
* fixed unnecessary "?"
* re-generated sample
2024-12-06 14:33:55 +08:00
William Cheng
654f62ce3c
Prepare 7.11.0 ( #20130 )
...
* Revert "prepare 7.10.0 release (#20128 )"
This reverts commit 12dfe8fe74a1515d1e69e00df9abe4128aa44160.
* update to 7.11.0-SNAPSHOT, update samples
* update docs
2024-11-18 20:15:29 +08:00
Julian Vennen
6bd3d53eee
[PHP/Dart/Python] Correctly escape strings in single quotes ( Fixes #17582 ) ( #19529 )
...
* [PHP/Dart/Python] Correctly escape strings in single quotes (Fixes #17582 )
* Move escapeTextInSingleQuotes method to DefaultCodegen, add docblock
2024-11-09 16:50:12 +08:00
William Cheng
e2c458b9ea
Prepare 7.10.0 ( #19809 )
...
* Revert "prepare 7.9.0 release (#19808 )"
This reverts commit 4145000dfebe7a9edea4555c8515383da7602458.
* prepare 7.10.0 snapshot
* update doc
* update samples
2024-10-08 11:21:54 +08:00
Bruno Coelho
4c81563708
Update PHP samples
2024-10-07 11:27:35 +01:00
kruegge82
5902af4e75
in case of defined status codes > 299 switch will have no effect. issue 7788 ( #19483 )
...
* in case of defined status codes > 299 switch will have no effect. As described in issue 7788
so we get only an error if statusCode is not defined AND not between 200 and 299
https://github.com/OpenAPITools/openapi-generator/issues/7788
* in case of defined status codes > 299 switch will have no effect. As described in issue 7788
so we get only an error if statusCode is not defined AND not between 200 and 299
https://github.com/OpenAPITools/openapi-generator/issues/7788
2024-10-07 16:01:36 +08:00
William Cheng
77eb192414
update php samples
2024-10-05 15:02:54 +08:00
Imants Horsts
5e7cf1cfdd
By default should use static configuration class instance, otherwise new instance is created every time ( #19775 )
2024-10-05 14:57:08 +08:00
William Cheng
5f345c0213
update php samples
2024-10-03 21:10:30 +08:00
Markus Holstein
2437d7fa97
[PHP-Client] Allow Content-Type merge-match+json for encoding ( #19479 )
...
* Allow Content-Type merge-match+json for encoding
* Changes JSON recognition to more flexible regex
* Removes now useless JSON format list
* Removes empty spaces
* Adds explanatory PHPDoc comment
* Moves Json-detection to class HeaderSelector
2024-10-03 20:53:15 +08:00
Julian Vennen
78f2f7010f
[PHP] Add missing qualifier for enum parameters ( #19567 )
2024-09-23 16:17:52 +08:00
Julian Vennen
3832cb4eb7
[PHP] Update enum tests ( #19591 )
2024-09-16 19:48:58 +08:00
Julian Vennen
a5384d42b4
[PHP] Remove NUMBER_ prefix from enum vars if a name is provided, show enum descriptions ( #19555 )
...
* Remove NUMBER_ prefix from enum vars if a name is provided, show enum descriptions
* Update php model tests
2024-09-16 17:23:11 +08:00
Sobhan Sharifi
0643f526af
Fix ObjectSerializer::isEmptyValue to not consider "0" as "" ( #19472 )
2024-09-02 16:03:36 +08:00
William Cheng
91da2fd240
Prepare 7.9.0 snapshot ( #19386 )
...
* Revert "v7.8.0 release (#19385 )"
This reverts commit 6bdc452f92d49dcac7ac21dfe8751c8cc4267b98.
* update samples for v7.9.0-snapshot
2024-08-19 16:14:51 +08:00
Şerban Ghiţă
539aab05a7
[BUG] PHP Client - ObjectSerializer::buildQuery flattens array params resulting invalid URL params (param=a¶m=b vs param[]=a¶m[]=b) #19233 ( #19236 )
...
* [BUG] PHP Client - ObjectSerializer::buildQuery flattens array params resulting invalid URL params (param=a¶m=b vs param[]=a¶m[]=b) #19233
* Added tests (replaced old provider data). This looks like a breaking change
* Fix space
---------
Co-authored-by: Serban Ghita <serban.ghita@virta.global>
2024-08-07 17:15:59 +08:00
Julian Vennen
3e263ce3fc
php: Fix typedoc comment for headers in ApiException ( #19217 )
2024-07-23 10:00:48 +08:00
William Cheng
20cfce0b4a
Prepare v7.8.0 ( #19048 )
...
* Revert "v7.7.0 release"
This reverts commit f3dd32385e02065ad298801ca11b8871bcb3a92a.
* prepare v7.8.0
* update readme
* update doc
* update samples
2024-07-02 16:45:53 +08:00
William Cheng
741bf0c035
Prepare 7.7.0-SNAPSHOT ( #18709 )
...
* Revert "7.6.0 release"
This reverts commit d76f9d32d11a03be2b40ebff728ef0ff86332fcb.
* prepare 7.7.0 snapshot in master
* update samples
2024-05-20 17:27:17 +08:00
Simon Podlipsky
98d026118c
feat(php): allow to pass raw boolean to api ( #18520 )
...
This allows users to use APIs that require booleans in query params not to be cast to int, e.g. `&foo=true`. Currently, `true` is cast to `1` so it's passed as `&foo=1`. That might not be supported by the target API.
The fix contains copy-pasted function from guzzlehttp/psr7 `Query::build()` with minor tweak.
2024-05-01 18:10:00 +08:00
William Cheng
807250a430
Prepare 7.6.0 ( #18412 )
...
* Revert "v7.5.0 release"
This reverts commit 1eafe2aebf33b13bee0ead66d62a6436e7db059d.
* update master to v7.6.0 snapshot
* update readme
* update samples
2024-04-17 19:05:37 +08:00
Viktor Szépe
172c4d11b4
Remove param tag for non-existent parameter in ObjectSerializer ( #18347 )
...
* Remove param tag for non-existent parameter in ObjectSerializer
* Remove all discriminator parameters
2024-04-11 13:17:15 +08:00
William Cheng
4ff7e0ec3f
Prepare 7.5.0 snapshot ( #18068 )
...
* Revert "7.4.0 release"
This reverts commit eda049348425171df772a7b9087cc97db718cfda.
* prepare 7.5.0 snapshot version
* update samples
* update doc
2024-03-11 11:10:52 +08:00