Commit Graph
818 Commits
Author SHA1 Message Date
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 ee0859398e Improving Predicate Usability of Schema.is (#2756) 2024-05-16 07:56:10 +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 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
Tim 2e1cdf67d1 ensure all type ids are annotated with unique symbol (#2679) 2024-05-02 15:04:10 +12:00
Giulio Canti 8206529d6a add support for data-last subtype overloads in compose (#2631) 2024-04-26 14:20:47 +02:00
Sebastian Lorenz 027418edaa Revert removal of custom NoInfer (#2626) 2024-04-26 12:22:09 +02:00
Giulio Canti dd41c6c725 Remove excessive constraint from the pipeable overload of `attachProp… (#2595) 2024-04-22 12:42:27 +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
Giovanni Ravalico 80271bdc64 Fix JSDoc typos in BooleanFromUnknown and split functions for Schema package (#2583)
Signed-off-by: Giovanni Ravalico <15946771+suddenlyGiovanni@users.noreply.github.com>
2024-04-21 07:48:40 +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
Tim 8edacca37f prevent use of Array as import name to solve bundler issues (#2555) 2024-04-18 13:46:36 +12:00
Giulio Canti b2b5d6626b Fix transformOrFail and transformOrFailFrom signatures in the exp… (#2550) 2024-04-17 14:52:02 +02:00
Giulio Canti e542371981 Schema: add compose overloads to enable a subtyping relationship in both di… (#2531) 2024-04-16 13:08:26 +02:00
Sebastian Lorenz 78b767c2b1 Rename ReadonlyArray and ReadonlyRecord modules (#2529) 2024-04-16 21:28:46 +12:00
Tim 5a2314b70e replace use of unit terminology with void (#2476) 2024-04-16 09:41:49 +02:00
Giulio Canti 9aeae461fd Schema: remove the custom Simplify type that was previously introd… (#2391) 2024-04-16 09:41:49 +02:00
Giulio Canti e7e1bbe684 Replace custom NoInfer type with the native NoInfer type from Typ… (#2390) 2024-04-16 09:41:49 +02:00
Giulio Canti 271b79fc0b Either: fix getEquivalence parameter order from `Either.getEquivale… (#2243) 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
Michael Arnaldi 0aee906f03 Re-export FastCheck (#2505) 2024-04-12 18:59:04 +02:00
Giulio Canti 776ef2bb66 add a RegExp module to packages/effect, closes #2488 (#2493) 2024-04-12 15:56:47 +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
Patrick RozaandMichael Arnaldi 4cd2bedf97 preserve jsdoc and cmd-click (#2436)
Co-authored-by: Michael Arnaldi <michael.arnaldi@effectful.co>
2024-03-30 09:10:46 +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 f2bb332926 Schema: fix ts 5.4 build errors (#2439) 2024-03-29 15:49:44 +01:00
Giulio Canti a31917aa4b Schema: export null from the AST module (#2428) 2024-03-28 16:36:49 +01:00
Giulio Canti 5ded019970 Schema: corrected the optional signature to exclude invalid options (#2424) 2024-03-27 13:08:29 +01:00
Giulio Canti 9b664a72d0 Schema: readme: pattern to simplify recursive schema definition (#2420) 2024-03-27 07:44:06 +01:00
Jesse Kelly 3981b0ab14 Schema: use bigint.{fromString,fromNumber} for bigint schemas (#2409) 2024-03-26 09:22:23 +01:00
Giulio Canti a76e5e131a Schema: extend should un-nest sub-unions (#2398) 2024-03-25 16:28:06 +01:00