File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
tests/src/PHPUnit/Example Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 11# Swaggest JSON-schema implementation for PHP
22
3+ [ ![ Build Status] ( https://travis-ci.org/swaggest/php-json-schema.svg?branch=master )] ( https://travis-ci.org/swaggest/php-json-schema )
4+ [ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/swaggest/php-json-schema/badges/quality-score.png?b=spec-compliance )] ( https://scrutinizer-ci.com/g/swaggest/php-json-schema/?branch=spec-compliance )
5+ [ ![ Code Climate] ( https://codeclimate.com/github/swaggest/php-json-schema/badges/gpa.svg )] ( https://codeclimate.com/github/swaggest/php-json-schema )
6+ [ ![ Test Coverage] ( https://codeclimate.com/github/swaggest/php-json-schema/badges/coverage.svg )] ( https://codeclimate.com/github/swaggest/php-json-schema/coverage )
7+
38High definition PHP structures with JSON-schema based validation.
49
510## Installation
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ public function testExample()
100100 $ example ->name = 'John Doe ' ;
101101
102102 $ order = new Order ();
103- $ order ->dateTime = ( new \ DateTime ())-> format ( DATE_RFC3339 ) ;
103+ $ order ->dateTime = ' 2015-10-28T07:28:00Z ' ;
104104 $ example ->orders [] = $ order ;
105105
106106 Example::export ($ example ); // Exception: Required property missing: id at #->properties:orders->items[0]
You can’t perform that action at this time.
0 commit comments