Commit Graph
688 Commits
Author SHA1 Message Date
Giulio Canti 9dfc156dc1 Schema: remove non-tree-shakable compiler dependencies from the Schema module (#2586) 2024-04-21 12:11:41 +02:00
Giulio Canti e4ba97d060 Schema: JSONSchema - rearrange handling of surrogate annotations to o… (#2585) 2024-04-21 08:40:47 +02:00
Giulio Canti b3fe829e8b Schema: add default title annotations to both sides of Struct transfo… (#2582) 2024-04-20 19:24:32 +02:00
Giulio Canti a58b7deb8b Fix formatting for Class and brands AST (#2581) 2024-04-20 18:42:59 +02:00
Giulio Canti d90e8c3090 Schema: JSONSchema should support make(Class) (#2579) 2024-04-20 09:18:46 +02:00
Giulio Canti 773b8e0152 Schema: partial / required: add support for renaming property keys in… (#2577) 2024-04-19 15:02:59 +02:00
Giulio Canti 265ffb6eb4 Schema: refactor test filenames to align with new naming conventions (#2560) 2024-04-18 11:16:16 +02:00
Tim 5a2314b70e replace use of unit terminology with void (#2476) 2024-04-16 09:41:49 +02:00
Giulio Canti bded4f023e Schema: consolidate schema names (#2497) 2024-04-15 15:53:39 +02:00
Giulio Canti 0d3231a195 make AST.pick correctly handle key renames (#2511) 2024-04-13 10:46:15 +02:00
Michael Arnaldi c22b019e5e Introduce LazyArbitrary and new make (#2508) 2024-04-13 09:19:05 +02:00
Giulio Canti 4c37001341 Schema: fix exitFromSelf description annotation (#2496) 2024-04-09 17:22:35 +02:00
Giulio Canti 8a69b4ef6a Schema: fix eitherFromSelf description annotation (#2495) 2024-04-09 16:59:50 +02:00
Giulio Canti b3acf47f9c Schema: next minor (#2440) 2024-04-09 14:56:58 +02:00
Giulio Canti 42b36519f3 Schema: add ParseIssueTitle annotation, closes #2482 (#2483) 2024-04-05 16:16:05 +02:00
Giulio Canti a4032fac1d Schema: clean up: remove useless internal modules (#2481) 2024-04-05 11:18:27 +02:00
Giulio Canti 58f66fecd4 Schema: Class API: Added default title annotation to the encoded side (#2471) 2024-04-04 09:03:42 +02:00
Giulio Canti 3cad21daa5 Schema: length now allows expressing a range (#2465) 2024-04-03 18:08:06 +02:00
Giulio Canti 8b46fdebf2 Schema: add set, setFromSelf, map, mapFromSelf (#2456) 2024-04-02 18:10:53 +02:00
Jesse Kelly 7cc2b41d6c Add Schema.BooleanFromUnknown (#2453) 2024-04-02 18:04:23 +02:00
Giulio Canti 62a7f23937 Schema: ParseResult: add output field to TupleType and TypeLiteral (#2446) 2024-03-30 16:59:08 +01:00
Giulio Canti 6cc6267026 Schema: Enums are now exposed under an enums property of the schema (#2442) 2024-03-30 08:51:04 +01:00
Giulio Canti a76e5e131a Schema: extend should un-nest sub-unions (#2398) 2024-03-25 16:28:06 +01:00
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