Skip to content

Commit 951fa8a

Browse files
committed
Changelog: listing changes to dateIn and dateOut.
1 parent 4963d58 commit 951fa8a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
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

0 commit comments

Comments
 (0)