Skip to content

Commit cecd4e3

Browse files
committed
Revert manual test json
1 parent 1c52109 commit cecd4e3

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

tests/manual/schema/person.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
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
}

tests/manual/test.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,3 @@
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]);

0 commit comments

Comments
 (0)