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 1
1
{
2
- "$ id" : " example " ,
2
+ "id" : " Person " ,
3
3
"type" : " object" ,
4
4
"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
16
14
}
17
- }
15
+ },
16
+ "required" : [
17
+ " name"
18
+ ]
18
19
}
Original file line number Diff line number Diff line change 14
14
$ generator
15
15
->generateModelDirectory (__DIR__ . '/result ' )
16
16
->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