Commit Graph
665 Commits
Author SHA1 Message Date
Milan Suk d17a427c44 fix: Schema.extend with nested union (#2396) 2024-03-24 08:22:35 +01:00
TimandGiulio Canti 3307729de1 update typescript to 5.4 (#2385)
Co-authored-by: Giulio Canti <giulio.canti@gmail.com>
2024-03-22 20:34:22 +13:00
TimandGiulio Canti 9392de6baa preserve defect information & TaggedError message (#2359)
Co-authored-by: Giulio Canti <giulio.canti@gmail.com>
2024-03-22 19:30:17 +13:00
Leo Conforti dc7e49720d Schema template literal regex escape special characters (#2370) 2024-03-20 07:36:16 +01:00
Giulio Canti a45a525e7c Schema: refactor unions: remove sorting, flattening, and unification (#2350) 2024-03-18 09:13:38 +01:00
Giulio Canti cb20824416 Schema: feedback: expose Class API identifiers (#2348) 2024-03-17 09:50:18 +01:00
Giulio Canti 6f7dfc9637 Schema: improve pick/omit and add support for Class (#2343) 2024-03-16 07:04:45 +01:00
Giulio Canti 88b85838e0 JSONSchema: allow overrides through annotations, closes #1823 (#2337) 2024-03-15 11:19:17 +01:00
Giulio Canti cfef6ecd1f feedback: remove array overload to restore pipeability to the API (#2320) 2024-03-14 15:04:50 +01:00
Giulio Canti f9aa524dc3 chore: refactor Arbitrary.ts internals (#2318) 2024-03-14 10:32:02 +01:00
Giulio Canti 89748c90b3 merge Parser module into ParseResult (#2310) 2024-03-13 22:31:03 +01:00
Giulio Canti 7f89c8295a chore: add more toString methods (#2307) 2024-03-13 20:19:27 +01:00
Giulio Canti 90ec9bf480 rename headOr to headOrElse to align with the standard naming con… (#2298) 2024-03-13 13:04:41 +01:00
Giulio Canti b320df3b12 add mutable API interface (#2297) 2024-03-13 12:58:47 +01:00
Giulio Canti 6479cc4ec5 Remove propertySignatureAnnotations (#2295) 2024-03-13 08:23:32 +01:00
Giulio Canti 59212123ba Refactor pluck (#2294) 2024-03-13 07:56:47 +01:00
Giulio Canti 3e2038f1a9 Schema annotations interfaces have been refactored into a namespace Annotations (#2289) 2024-03-12 17:41:18 +01:00
Giulio Canti fb943edcc9 refactor propertySignature and add propertySignatureAnnotations (#2282) 2024-03-12 00:27:17 +01:00
Giulio Canti 5d47ee0855 schema: next minor (#2172) 2024-03-11 16:40:18 +01:00
Giulio Canti d535e4304c uncurry sortedSet combinators (#2265) 2024-03-08 16:41:05 +01:00
Jesse Kelly d8e694040f Added Schema.sortedSet (#2241) 2024-03-08 15:55:05 +01:00
Giulio Canti 465be7926a Schema: add BatchingAnnotation (#2234) 2024-03-01 10:48:33 +01:00
Giulio Canti 39f583eaeb TaggedClass: ensure constructor parameters don't overwrite the tag (#2222) 2024-03-01 10:32:26 +13:00
Giulio Canti f428198725 Schema: add ConcurrencyAnnotation (#2227) 2024-02-29 16:16:18 +01:00
Steffandsteff 5d308534ca Schema: add pickLiteral to Schema literal (#2209)
Co-authored-by: steff <steff@ST.local>
2024-02-27 18:56:14 +01:00
Giulio Canti 6e350ed611 JSONSchema: prune UndefinedKeyword if the property signature is mar… (#2217) 2024-02-27 17:41:46 +01:00
Giulio Canti 136ef40fe4 Equivalence: return Equal.equals instead of Equivalence.strict() … (#2185) 2024-02-21 14:48:18 +01:00
Giulio Canti f24ac9f0c2 add support for Equivalence to class APIs (#2184) 2024-02-21 14:48:18 +01:00
Giulio Canti 40ff2fc1b3 Updated the MessageAnnotation type to accept a ParseIssue (#2171) 2024-02-21 14:48:18 +01:00
Giulio Canti 54ddbb720a Schema: change the MessageAnnotation type to be non-parametric; now… (#2170) 2024-02-21 14:48:18 +01:00
Michael ArnaldiandMaxwell Brown a025b12123 Swap Either type params (#2102)
Co-authored-by: Maxwell Brown <maxwellbrown1990@gmail.com>
2024-02-21 14:48:18 +01:00
Michael Arnaldi ff88f808c4 Fix Cause.pretty when toString is invalid (#2143) 2024-02-14 20:16:54 +01:00
Giulio Canti dbff62c302 Schema: add { exact: true } optional argument to the partial API,… (#2141) 2024-02-14 16:40:17 +01:00
Timandgcanti e572b076e9 allow passing structs when encoding schema classes (#2128)
Co-authored-by: gcanti <giulio.canti@gmail.com>
2024-02-14 13:53:31 +01:00
Giulio Canti df98f81055 revert PR 2113 (#2126) 2024-02-13 16:12:06 +01:00
Giulio Canti 7eecb1c6ce ParseResult: add missing decode / encode exports (#2124) 2024-02-13 15:05:06 +01:00
Giulio Canti aef2b8bb63 Schema: use the identity function in the transformation defining a … (#2121) 2024-02-13 11:52:29 +01:00
Timandgcanti 855ff0b043 disable instanceof check for encoding schema classes (#2113)
Co-authored-by: gcanti <giulio.canti@gmail.com>
2024-02-13 22:19:47 +13:00
Giulio Canti a344b42086 Schema: add support for unions to keyof (#2111) 2024-02-12 17:20:50 +01:00
Giulio Canti 13d3266f33 Schema: make headOr dual (#2110) 2024-02-12 16:13:08 +01:00
Giulio Canti 1c6d18b422 Schema: add transformation: false option to pluck (#2108) 2024-02-12 15:33:28 +01:00
Giulio Canti 9dc04c88a2 Introducing Optional Annotations in optional API (#2079) 2024-02-09 16:51:47 +13:00
Giulio Canti d3f9f4d403 Schema: switch from positional arguments to a … (#2074) 2024-02-09 16:51:47 +13:00
Giulio Canti 1a77f72cda change Effect type parameters order (#2034) 2024-02-09 16:51:47 +13:00
Michael ArnaldiandTim 9a2d1c1468 feat(breaking): Add ClassTag, improve Effect.serviceConstants, require string identifier for all tags (#2028)
Co-authored-by: Tim <hello@timsmart.co>
2024-02-09 16:51:47 +13:00
Giulio Canti a34dbdc155 Schema: change type parameters order from Schema<R, I, A> to Schema<A, I = A, R = never> (#2026) 2024-02-09 16:51:47 +13:00
Giulio Canti 13785cf4a5 Schema: Equivalence: handle transformations (#2017) 2024-01-30 18:49:00 +01:00
Giulio Canti f1ff44b58c Schema: add option to preserve excess properties, closes #2008 (#2011) 2024-01-30 10:42:26 +01:00
Giulio Canti 9863e2fb35 Schema: enhance error messages (#1992) 2024-01-26 17:11:51 +01:00
Giulio Canti 64f710aa49 Schema: Class constructor: avoid overwriting props with `additional… (#1988) 2024-01-26 11:43:48 +01:00