|
24 | 24 | * definition?: array<string, mixed>, |
25 | 25 | * type?: string, |
26 | 26 | * description?: string, |
27 | | - * enum?: array<int, float|string|int>, |
28 | | - * gormat?: string, |
| 27 | + * enum?: array<int, int|float|string|null>, |
| 28 | + * format?: string, |
29 | 29 | * minLength?: int, |
30 | 30 | * maxLength?: int, |
31 | 31 | * pattern?: string, |
@@ -64,7 +64,7 @@ class Schema |
64 | 64 | public ?string $description = null; |
65 | 65 | public mixed $default = null; |
66 | 66 | /** |
67 | | - * @var ?array<int, float|string|int> |
| 67 | + * @var ?array<int, int|float|string|null> |
68 | 68 | */ |
69 | 69 | public ?array $enum = null; // list of allowed values |
70 | 70 | public ?string $format = null; // e.g., 'email', 'date-time' |
@@ -105,26 +105,26 @@ class Schema |
105 | 105 | public bool|array|null $additionalProperties = null; // true, false, or a schema array |
106 | 106 |
|
107 | 107 | /** |
108 | | - * @param ?array<string, mixed> $definition A complete JSON schema array. If provided, other parameters are ignored. |
109 | | - * @param ?string $type the JSON schema type |
110 | | - * @param ?string $description description of the element |
111 | | - * @param ?array<int, float|string|int> $enum allowed enum values |
112 | | - * @param ?string $format String format (e.g., 'date-time', 'email'). |
113 | | - * @param ?int $minLength minimum length for strings |
114 | | - * @param ?int $maxLength maximum length for strings |
115 | | - * @param ?string $pattern regex pattern for strings |
116 | | - * @param int|float|null $minimum minimum value for numbers/integers |
117 | | - * @param int|float|null $maximum maximum value for numbers/integers |
118 | | - * @param ?bool $exclusiveMinimum exclusive minimum |
119 | | - * @param ?bool $exclusiveMaximum exclusive maximum |
120 | | - * @param int|float|null $multipleOf must be a multiple of this value |
121 | | - * @param ?array<string, mixed> $items JSON Schema for items if type is 'array' |
122 | | - * @param ?int $minItems minimum items for an array |
123 | | - * @param ?int $maxItems maximum items for an array |
124 | | - * @param ?bool $uniqueItems whether array items must be unique |
125 | | - * @param ?array<string, mixed> $properties Property definitions if type is 'object'. [name => schema_array]. |
126 | | - * @param ?array<int, string> $required list of required properties for an object |
127 | | - * @param bool|array<string, mixed>|null $additionalProperties policy for additional properties in an object |
| 108 | + * @param ?array<string, mixed> $definition A complete JSON schema array. If provided, other parameters are ignored. |
| 109 | + * @param ?string $type the JSON schema type |
| 110 | + * @param ?string $description description of the element |
| 111 | + * @param ?array<int, int|float|string|null> $enum allowed enum values |
| 112 | + * @param ?string $format String format (e.g., 'date-time', 'email'). |
| 113 | + * @param ?int $minLength minimum length for strings |
| 114 | + * @param ?int $maxLength maximum length for strings |
| 115 | + * @param ?string $pattern regex pattern for strings |
| 116 | + * @param int|float|null $minimum minimum value for numbers/integers |
| 117 | + * @param int|float|null $maximum maximum value for numbers/integers |
| 118 | + * @param ?bool $exclusiveMinimum exclusive minimum |
| 119 | + * @param ?bool $exclusiveMaximum exclusive maximum |
| 120 | + * @param int|float|null $multipleOf must be a multiple of this value |
| 121 | + * @param ?array<string, mixed> $items JSON Schema for items if type is 'array' |
| 122 | + * @param ?int $minItems minimum items for an array |
| 123 | + * @param ?int $maxItems maximum items for an array |
| 124 | + * @param ?bool $uniqueItems whether array items must be unique |
| 125 | + * @param ?array<string, mixed> $properties Property definitions if type is 'object'. [name => schema_array]. |
| 126 | + * @param ?array<int, string> $required list of required properties for an object |
| 127 | + * @param bool|array<string, mixed>|null $additionalProperties policy for additional properties in an object |
128 | 128 | */ |
129 | 129 | public function __construct( |
130 | 130 | ?array $definition = null, |
|
0 commit comments