wing328
1638adb79e
avoid code injection in php api client
2016-06-27 21:51:27 +08:00
wing328
f482132c66
Merge branch 'master' of https://github.com/sdavis-r7/swagger-codegen into sdavis-r7-master
...
Conflicts:
modules/swagger-codegen/src/main/resources/php/model.mustache
modules/swagger-codegen/src/main/resources/php/model_generic.mustache
2016-06-27 16:20:44 +08:00
wing328
74239c422b
add enum class support, merged test cases for php
2016-06-26 17:41:29 +08:00
Scott Davis
80666394f6
CVE-2016-5641
2016-06-23 06:06:21 -07:00
Arne Jørgensen
f5f4adac29
[PHP] Handle empty array response correct
2016-06-13 23:22:04 +02:00
Mikolaj Przybysz
47576471e2
Replaced double quotes with singles
2016-06-01 10:57:20 +02:00
Mikolaj Przybysz
4f54e5cdc7
Improved formatting
2016-06-01 10:43:22 +02:00
Mikolaj Przybysz
37264b0bcf
Removed printing artifactVersion if it is not set from debug information
2016-06-01 10:35:52 +02:00
Mikolaj Przybysz
ce2e994306
Removed printing artifactVersion if it is not set
2016-06-01 10:30:55 +02:00
Arne Jørgensen
5c97d1b8f7
[PHP] Improve code style of generated code
...
Avoid trailing whitespace.
2016-05-25 22:53:01 +02:00
Arne Jørgensen
d9d3a41deb
[PHP] add apache v2 license to PHP client
...
See #2963 .
2016-05-25 22:53:01 +02:00
Mikolaj Przybysz
041c5d1d34
Replaced \n with PHP_EOL
2016-05-24 14:25:16 +02:00
wing328
c6f03806df
Replaced {{mediaType}} with {{{mediaType}} to keep the original media
2016-05-20 17:48:47 +08:00
wing328
c649e63e74
Merge pull request #2808 from mikolajprzybysz/broken-repo-path
...
[PHP] Fixing bug with composer project path in generated sdk
2016-05-17 23:30:02 +08:00
Arne Jørgensen
cc395fdf63
[PHP] Improve generated codestyle
2016-05-14 13:45:41 +02:00
wing328
0b7d0c34af
add debug switch to print out downloaded file info
2016-05-14 17:11:48 +08:00
wing328
e24405e706
Merge pull request #2861 from BeneficialName/php-fix-prop-name-as-var
...
[PHP] list_invalid_properties now don't call undefined variables
2016-05-13 17:35:18 +08:00
wing328
406357e3b8
Merge pull request #2854 from BeneficialName/php-cleanup
...
[PHP] Cleanup to make coding style more consistent
2016-05-13 17:31:36 +08:00
wing328
26aa8e7c05
Merge pull request #2852 from BeneficialName/php-model-change
...
[PHP] method list_invalid_properties change to camelCase
2016-05-13 16:55:17 +08:00
Kim Sondrup
e31c71f685
[PHP] list_invalid_properties now don't call undefined variables
2016-05-13 10:54:29 +02:00
Kim Sondrup
b2f5d8c060
[PHP] Made coding standard more consistent across template files
2016-05-13 01:47:59 +02:00
Kim Sondrup
6bb953d0aa
[PHP] Remove trailing spaces from templates
2016-05-13 00:31:45 +02:00
Kim Sondrup
840adb8aa3
[PHP] model list_invalid_properties change to camelCase
2016-05-12 20:05:55 +02:00
Mikolaj Przybysz
bbb1c13b79
Modified code to be able to use composer properties and git properties alternatively and together
2016-05-12 16:38:13 +02:00
Mikolaj Przybysz
329d22ec00
Revert "Fixing php sdk composer project path"
...
This reverts commit 4bbc911664775081136c3c42e72836cb99e5131c.
2016-05-12 14:29:00 +02:00
wing328
745e1aba32
fix broken links in php doc
2016-05-11 00:03:14 +08:00
wing328
3c72547e27
Merge branch 'issue-2743' of https://github.com/mikolajprzybysz/swagger-codegen into mikolajprzybysz-issue-2743
2016-05-10 22:33:00 +08:00
Mikolaj Przybysz
4bbc911664
Fixing php sdk composer project path
2016-05-09 19:56:20 +02:00
Mikolaj Przybysz
449d6b7d5f
issue-2743 fixing docs path and composer autoloader-dev
2016-05-09 19:03:49 +02:00
wing328
d0529cffdb
Merge branch 'php-fix-array-handling-2' of https://github.com/arnested/swagger-codegen into arnested-php-fix-array-handling-2
...
Conflicts:
modules/swagger-codegen/src/main/resources/php/model.mustache
samples/client/petstore/php/SwaggerClient-php/README.md
samples/client/petstore/php/SwaggerClient-php/lib/Model/Animal.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/AnimalFarm.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/ApiResponse.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Cat.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Category.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Dog.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/EnumClass.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/EnumTest.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/FormatTest.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Model200Response.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/ModelReturn.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Name.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Order.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Pet.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/SpecialModelName.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Tag.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/User.php
2016-05-10 00:29:13 +08:00
wing328
f30b32afc4
minor fix to mustache layout
2016-05-09 16:32:49 +08:00
abcsun
9efef02d5f
formate the module.mustache
2016-05-07 18:12:28 +08:00
abcsun
df1d36cf47
modify the properties from container array
2016-05-07 15:55:38 +08:00
abcsun
0695708594
sync from origin master & do the parameters validation in model
2016-05-07 15:43:19 +08:00
Arne Jørgensen
f5a802d9af
[PHP] Fix default values in derived classes
...
Fixes flaw in 9f40a82310b36764e5d8ee055983c888ac4d88a6.
2016-05-06 23:48:52 +02:00
wing328
1dd8faf8b7
Merge pull request #2783 from GriffinSchneider/patch-1
...
Replace 'BEARER' with 'Bearer' everywhere for RFC6750 compliance.
2016-05-06 15:01:22 +08:00
wing328
ac2cb647b5
Merge branch 'php-fix-array-handling' of https://github.com/arnested/swagger-codegen into arnested-php-fix-array-handling
...
Conflicts:
modules/swagger-codegen/src/main/resources/php/model.mustache
samples/client/petstore/php/SwaggerClient-php/README.md
samples/client/petstore/php/SwaggerClient-php/docs/FormatTest.md
samples/client/petstore/php/SwaggerClient-php/lib/Api/FakeApi.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Animal.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/ApiResponse.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Cat.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Category.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Dog.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/FormatTest.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Model200Response.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/ModelReturn.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Name.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Order.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Pet.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/SpecialModelName.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/Tag.php
samples/client/petstore/php/SwaggerClient-php/lib/Model/User.php
2016-05-06 10:46:36 +08:00
Griffin Schneider
e5ab34b658
Replace 'BEARER' with 'Bearer' everywhere.
...
RFC6750 indicates that the correct header format is 'Bearer <token>',
not 'BEARER <token>'.
2016-05-05 16:14:45 -04:00
abcsun
22ea2d87e0
add validation to model
2016-05-05 11:41:14 +08:00
abcsun
f4ef2b0325
add valid function and validation to each setter
2016-05-04 16:56:56 +08:00
abcsun
c8f2715edc
fix the minLength validation
2016-05-04 14:52:12 +08:00
wing328
0310d95800
fix csharp enum issue after rebase
2016-05-03 11:19:19 +08:00
wing328
be83c0cc3c
add new enum file for csharp and php
2016-05-03 11:16:05 +08:00
wing328
2c9e9ee425
fix getter for allowableValues for php enum
2016-05-03 11:14:45 +08:00
wing328
800a858acb
add enum support to php, refactor post process model enum
2016-05-03 11:14:44 +08:00
Mikolaj Przybysz
ce6dd4b2c2
issue-2743 added autoloading of tests into composer while in dev (ref.: https://getcomposer.org/doc/04-schema.md#autoload-dev )
2016-05-02 11:39:56 +02:00
abcsun
72120099b4
change the validation to allParams
2016-04-29 11:04:27 +08:00
abcsun
fbde7f88ee
add parameter validation in methord call
2016-04-28 10:39:54 +08:00
Arne Jørgensen
9f40a82310
[PHP] Fix ArrayAccess interface implmentation in models
...
The models didn't implement a generally working ArrayAccess
interface. This would fail on list container types (array).
This commit refactors some internals of the model object. The model
properties are no longer stored as separate properties on the PHP object
but as entries in a `$container` property.
This is needed to make the model work also for list containers. Besides
it avoids potential problems where the model would specify property
names that could collide with names used by the Swagger model
implementation itself (i.e. `$attributeMap`).
2016-04-27 21:00:58 +02:00
Arne Jørgensen
bbe12c1658
[PHP] Use parentSchema instead parent to detect inheritance
...
`parent` in a model is set not only when the model inherits from another
model but also when a parent container exists.
So We will now use `parentSchema` to check whether a parent class
exists. If si we still use `parent` to output the class name because
that has been converted to a proper model name and `parentSchema`
hasn't.
2016-04-27 21:00:58 +02:00