Commit Graph
643 Commits
Author SHA1 Message Date
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
Giulio Canti 1a84dee0e9 Schema: add hash (#1977) 2024-01-25 18:05:23 +01:00
Giulio Canti ac30bf4cd5 Schema: Allow non-async Effects to be used with *Sync combinators, cl… (#1978) 2024-01-25 17:45:37 +01:00
62b40e8479 add context tracking to Schema, closes #1873, #1954, #1956 (#1922)
Co-authored-by: Tim <hello@timsmart.co>
Co-authored-by: Tim Smart <tim.smart@arisechurch.com>
2024-01-24 12:01:44 +01:00
Giulio Canti 3bf67cf64f Schema: fix getNumberIndexedAccess signature and implementation (#1945) 2024-01-18 14:47:02 +01:00
Giulio Canti 0d1af1e38c fix head and headOr signatures (#1939) 2024-01-17 16:43:14 +01:00
Giulio Canti f493929ab8 Schema: re-add getPropertySignatures (#1933) 2024-01-16 14:19:28 +01:00
Giulio Canti 5911fa9c94 Schema: add pluck (#1932) 2024-01-16 11:40:25 +01:00
Giulio Canti b88096aa1a Schema: add fallback arg to headOrFail and rename to headOr (#1931) 2024-01-16 09:45:37 +01:00
Giulio Canti d5432213e9 Schema: add optionFromOrUndefined (#1930) 2024-01-16 09:03:22 +01:00
Giulio Canti 2530d470b0 Schema: add head / headOrFail (#1928) 2024-01-16 08:52:13 +01:00
Giulio Canti b557a10b77 ParseResult refactoring (#1913) 2024-01-12 16:49:25 +01:00
Giulio Canti ec2bdfae2d Schema: refactor eitherFromUnion as union of transformations (#1910) 2024-01-12 13:53:38 +01:00
Tim 74b90940e5 fix formatting of suspend before initialization (#1909) 2024-01-12 21:28:46 +13:00
Matheus Michalski Puel 0c397e7620 Schema: show error message when throw ParseError (#1906) 2024-01-11 19:19:24 +01:00
Giulio Canti 337e80f69b Chore/schema more annotations (#1904) 2024-01-11 15:26:47 +01:00
Giulio Canti 8eec87e311 Struct: add get, closes #1890 (#1891) 2024-01-10 18:49:33 +01:00
Matheus Michalski Puel 687e02e7d8 Schema: fix ParseIssue.actual on transformation (#1892) 2024-01-10 18:47:02 +01:00
Giulio Canti 5b46e996d3 Schema: treat missing properties as undefined (excluding is and `… (#1888) 2024-01-09 19:33:44 +01:00
Matheus Michalski Puel 210d27e999 Schema: add eitherFromUnion (#1794) 2024-01-09 17:18:53 +01:00
Giulio Canti c4b84f724a remove from/to APIs (#1878) 2024-01-09 10:53:40 +01:00
Giulio Canti a904a73945 Schema: Arbitrary remove from/to API in favour of make (#1877) 2024-01-08 16:39:52 +01:00
Sebastian Lorenzandgcanti 7b2f8743d9 Schema: refactor ParseResult module (#1842)
Co-authored-by: gcanti <giulio.canti@gmail.com>
2024-01-08 15:42:54 +01:00