Commit Graph
701 Commits
Author SHA1 Message Date
Giulio Canti e3766411b6 Add support for Config module, closes #2346 (#2816) 2024-05-22 21:06:02 +02:00
Giulio Canti f8038cadd5 Add support for Enums in Record, closes #2811 (#2814) 2024-05-22 18:07:12 +02:00
Giulio Canti 72a172ccba add test for Trimmed pattern (#2782) 2024-05-20 07:41:40 +02:00
Vincent FrançoisandGiulio Canti 17da864e4a Add onNoneEncoding to schema.optional (#2772)
Co-authored-by: Giulio Canti <giulio.canti@gmail.com>
2024-05-19 18:17:01 +02:00
Tylor Steinberger ff0efa0a14 feat: allow point-free usage of Schema.make constructors (#2769) 2024-05-17 17:16:34 +02:00
Giulio Canti da6d7d8452 pick: do not return a ComposeTransformation if none of the picked… (#2746) 2024-05-15 11:36:32 +02:00
Giulio Canti 992c8e2153 Schema.optional: the default option now allows setting a default … (#2741) 2024-05-14 08:39:12 +02:00
Giulio Canti 89a3afbe19 add cause in errors thrown by asserts, closes #2729 (#2738) 2024-05-13 18:48:46 +02:00
Giulio Canti 0d1f513335 Schema(readme): improve suspend examples (#2735) 2024-05-13 09:00:44 +02:00
Giulio Canti 799f469512 Schema(internal): remove temporary usage of jest/expect (#2734) 2024-05-13 08:10:20 +02:00
Michael ArnaldiandMilan Suk e41e91122f fix: vitest custom tester with toMatchObject (rebase) (#2732)
Co-authored-by: Milan Suk <Milansuk@email.cz>
2024-05-12 16:04:19 -07:00
Giulio Canti d7e49971fe Schema 0.67 (#2634) 2024-05-10 16:47:21 +02:00
Giulio Canti 121d6d9375 Class API: avoid access before initialization when creating a class w… (#2710) 2024-05-07 23:35:31 +02:00
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