You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE/bug_report.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,10 @@ A clear and concise description of what you expected to happen.
16
16
**Schema**
17
17
Please provide the schema which causes the issue. If multiple schemas are involved (eg. referenced schemas) please append a zip file with the complete structure.
18
18
19
+
Additionally include custom GeneratorConfiguration settings.
20
+
19
21
**Version:**
20
22
Which version of the library do you use?
21
23
22
24
**Additional context**
23
-
Add any other context about the problem here.
25
+
Add any other context about the problem here which might help to solve the issue.
Copy file name to clipboardExpand all lines: docs/source/gettingStarted.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -237,11 +237,11 @@ Generated interface:
237
237
238
238
.. code-block:: php
239
239
240
-
public function toArray([int $depth = 512]): array;
241
-
public function toJSON([int $options = 0 [, int $depth = 512]]): string;
240
+
public function toArray([array $except = [] [, int $depth = 512]]): array;
241
+
public function toJSON([array $except = [] [, int $options = 0 [, int $depth = 512]]]): string;
242
242
public function jsonSerialize(): array;
243
243
244
-
The generated class will implement the interface **PHPModelGenerator\\Interfaces\\SerializationInterface** implemented in the php-json-schema-model-generator-production repository. This interface can be used to write additional generic modules to handle the generated models. The $depth parameter defines the maximum amount of nested objects which are serialized. The $options parameter for the toJSON method provides access to the underlying option bitmask of `json_encode <https://www.php.net/manual/de/function.json-encode.php>`_.
244
+
The generated class will implement the interface **PHPModelGenerator\\Interfaces\\SerializationInterface** implemented in the php-json-schema-model-generator-production repository. This interface can be used to write additional generic modules to handle the generated models. Via the $except parameter you can pass an array of properties which will not be serialized (eg. password data for a user object). The $depth parameter defines the maximum amount of nested objects which are serialized. The $options parameter for the toJSON method provides access to the underlying option bitmask of `json_encode <https://www.php.net/manual/de/function.json-encode.php>`_.
245
245
246
246
Additionally the class will implement the PHP builtin interface **\JsonSerializable** which allows the direct usage of the generated classes in a custom json_encode.
0 commit comments