Commit Graph
761 Commits
Author SHA1 Message Date
Giulio Canti 7a45ad0a5f Schema: make partial dual (#2356) 2024-03-18 14:23:59 +01:00
Timandgcanti 5f5fcd969a Schema: make optional dual (#2353)
Co-authored-by: gcanti <giulio.canti@gmail.com>
2024-03-18 14:10:33 +01:00
Giulio Canti a45a525e7c Schema: refactor unions: remove sorting, flattening, and unification (#2350) 2024-03-18 09:13:38 +01:00
Giulio Canti 9bfa5ce26e Schema: internal: fix typeAST, encodedAST impl (#2349) 2024-03-17 10:55:35 +01:00
Giulio Canti cb20824416 Schema: feedback: expose Class API identifiers (#2348) 2024-03-17 09:50:18 +01:00
Giulio Canti 595140a13b Schema: feedback: add back BrandSchema (#2347) 2024-03-17 08:50:15 +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 dd2765fb35 Schema: use negate from effect/BigDecimal (#2341) 2024-03-15 18:13:28 +01:00
Giulio Canti 2d013c80b7 Schema: use not from effect/Boolean (#2340) 2024-03-15 13:54:51 +01:00
Giulio Canti 5c3b1ccba1 use Simplify from effect/Types in TaggedClass, TaggedError an… (#2339) 2024-03-15 11:45:07 +01:00
Giulio Canti 88b85838e0 JSONSchema: allow overrides through annotations, closes #1823 (#2337) 2024-03-15 11:19:17 +01:00
Giulio Canti d0f56c68e6 Schema: add missing Date api interfaces (#2332) 2024-03-15 08:25:09 +01:00
Giulio Canti 326b65ae8f internal: fix changeMap impl (#2321) 2024-03-14 16:43:51 +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
Milan Suk a75bc48e0e fix: expose missing ParseResult types (#2308) 2024-03-13 20:33:09 +01:00
Giulio Canti 7f89c8295a chore: add more toString methods (#2307) 2024-03-13 20:19:27 +01:00
Giulio Canti d10f876cd9 chore: improves the display of Struct.Type and Struct.Encoded whe… (#2305) 2024-03-13 16:07:03 +01:00
Giulio Canti 743ae6d12b chore: remove static struct from makeClass internal constructor (#2304) 2024-03-13 15:50:47 +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 6ebda05601 AST: expose the getTemplateLiteralRegExp API (#2292) 2024-03-12 19:18:34 +01:00
Giulio Canti fe12bbac67 move PropertySignatureAST to PropertySignature namespace (#2291) 2024-03-12 17:53:25 +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
Jesse Kelly 6f503b774d Adds isSet, isMap to Predicate module (#2224) 2024-02-29 08:59:47 +01:00
Tim c035972dfa ensure Schema.Class is compatible without strictNullCheck (#2221) 2024-02-29 05:16:31 +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
Michael Arnaldi 6100b5c04c fix parseResult.fromOption 2024-02-21 14:48:18 +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
Jesse Kelly b9cb3a9c9b feat: added Number.parse and BigInt.toNumber (#2193) 2024-02-21 14:28:08 +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 e787a5772e Schema: refactor the declare signature to ensure that the decoding … (#2123) 2024-02-14 08:11:59 +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