File tree Expand file tree Collapse file tree 2 files changed +14
-17
lines changed Expand file tree Collapse file tree 2 files changed +14
-17
lines changed Original file line number Diff line number Diff line change 11{
2- "$ id" : " example " ,
2+ "id" : " Person " ,
33 "type" : " object" ,
44 "properties" : {
5- "example" : {
6- "allOf" : [
7- {
8- "type" : " number" ,
9- "multipleOf" : 5
10- },
11- {
12- "type" : " number" ,
13- "multipleOf" : 3
14- }
15- ]
5+ "name" : {
6+ "type" : " string" ,
7+ "description" : " The name of the person" ,
8+ "example" : " Lawrence"
9+ },
10+ "age" : {
11+ "type" : " integer" ,
12+ "description" : " The age of the person" ,
13+ "example" : 42
1614 }
17- }
15+ },
16+ "required" : [
17+ " name"
18+ ]
1819}
Original file line number Diff line number Diff line change 1414$ generator
1515 ->generateModelDirectory (__DIR__ . '/result ' )
1616 ->generateModels (__DIR__ . '/schema ' , __DIR__ . '/result ' );
17-
18- require_once __DIR__ . '/result/Example.php ' ;
19-
20- new ManualSchema \Example (['example ' => 5 ]);
You can’t perform that action at this time.
0 commit comments