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 1
1
# Swaggest JSON-schema implementation for PHP
2
2
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
+
3
8
High definition PHP structures with JSON-schema based validation.
4
9
5
10
## Installation
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ public function testExample()
100
100
$ example ->name = 'John Doe ' ;
101
101
102
102
$ order = new Order ();
103
- $ order ->dateTime = ( new \ DateTime ())-> format ( DATE_RFC3339 ) ;
103
+ $ order ->dateTime = ' 2015-10-28T07:28:00Z ' ;
104
104
$ example ->orders [] = $ order ;
105
105
106
106
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