summaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorRoger Meier <roger@apache.org>2014-10-08 23:28:09 +0200
committerRoger Meier <roger@apache.org>2014-10-08 23:41:18 +0200
commit964082a8eb06a5f36eff87132a048cbb3ea5e7a5 (patch)
tree36ae6b04cfcc9ef2bf2324939cbde5c31ea188c9 /.gitignore
parentd5f3be5ebdb2973b41b9bc902696845ed0b43f75 (diff)
downloadthrift-964082a8eb06a5f36eff87132a048cbb3ea5e7a5.tar.gz
THRIFT-2712 PHP: add "json" option to create JsonSerializable code
This patch adds a "json" option to PHP code generation that will make generated classes implement JsonSerializable, so thrift objects may be converted to json using json_encode() easily. If the "validate" option is enabled, the object's write validator will be called, beyond that the jsonSerialize() method only outputs non-null fields in the JSON object (JSON parsers get grumpy if you send them null where they expect to see a number). Patch: Stig Bakken Github Pull Request: This closes #219
Diffstat (limited to '.gitignore')
-rw-r--r--.gitignore3
1 files changed, 2 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index f072ade93..de55b3c9a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -168,6 +168,7 @@ test-driver
/lib/js/test/build
/lib/nodejs/node_modules/
/lib/perl/MANIFEST
+/lib/perl/MYMETA.json
/lib/perl/MYMETA.yml
/lib/perl/Makefile-perl.mk
/lib/perl/blib
@@ -199,7 +200,7 @@ test-driver
/lib/php/src/ext/thrift_protocol/thrift_protocol.la
/lib/php/src/ext/thrift_protocol/tmp-php.ini
/lib/php/src/packages/
-/lib/php/test/phpunit.xml
+/lib/php/test/TEST-*.xml
/lib/php/test/packages/
/lib/py/dist/
/lib/erl/logs/