We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6adf504 commit f9f339fCopy full SHA for f9f339f
tests/manual/schema/person.json
@@ -2,9 +2,18 @@
2
"$id": "Person",
3
"type": "object",
4
"properties": {
5
+ "name": {
6
+ "type": "string",
7
+ "description": "The name of the person",
8
+ "example": "Lawrence"
9
+ },
10
"age": {
11
"type": "integer",
- "enum": [42, 10]
12
+ "description": "The age of the person",
13
+ "example": 42
14
}
- }
15
16
+ "required": [
17
+ "name"
18
+ ]
19
tests/manual/test.php
@@ -9,7 +9,6 @@
$generator = new ModelGenerator((new GeneratorConfiguration())
->setNamespacePrefix('\\ManualSchema')
->setImmutable(false)
- ->setImplicitNull(true)
);
$generator
0 commit comments