File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 - The argument has to be the output type of the schema (used to be the opposite):
2020 - This change is only breaking for transforming schemas;
2121 - In order to specify an input example for a transforming schema the ` .example() ` method must be called before it;
22+ - The transforming proprietary schemas ` ez.dateIn() ` and ` ez.dateOut() ` now accept metadata as its argument:
23+ - This allows to set examples before transformation (` ez.dateIn() ` ) and to avoid the examples "branding";
2224- Generating Documentation is mostly delegated to Zod 4 ` z.toJSONSchema() ` :
2325 - The basic depiction of each schema is now natively performed by Zod 4;
2426 - Express Zod API implements some overrides and improvements to fit it into OpenAPI 3.1 that extends JSON Schema;
@@ -57,6 +59,11 @@ export default [
5759+ .example(123)
5860```
5961
62+ ``` diff
63+ - ez.dateIn().example("2021-12-31");
64+ + ez.dateIn({ examples: ["2021-12-31"] });
65+ ```
66+
6067## Version 23
6168
6269### v23.5.0
You can’t perform that action at this time.
0 commit comments