Commit Graph
611 Commits
Author SHA1 Message Date
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
Michael Arnaldi c5c987d7a5 apply new linting rules 2023-12-27 10:50:55 +01:00
Giulio Canti a20996ea90 Schema: add annotations argument to attachPropertySignature (#679) 2023-12-24 14:44:58 +01:00
Giulio Canti dd4c1eccb1 Schema: Inconsistent Naming and Simplifying Schemas (#669) 2023-12-20 14:01:00 +01:00
Giulio Canti df0bb415e0 Schema: refactor property signature APIs, closes #648 (#649) 2023-12-20 12:35:55 +01:00
Giulio Canti f96d6cb210 JSONSchema: Ensure proper handling of identifier annotations when gen… (#665) 2023-12-19 16:33:26 +01:00
Tim 16ad627d8c update effect (#662) 2023-12-18 15:56:13 +13:00
Jesse KellyandSebastian Lorenz 64196fd5e0 add Secret (#654)
Co-authored-by: Sebastian Lorenz <fubhy@fubhy.com>
2023-12-14 14:12:04 +01:00
Jesse Kelly 3680ad639c feat: added toString for Schema classes (#605) 2023-12-12 12:14:49 +13:00
Jesse KellyandSebastian Lorenz 702646aedf feat: added Duration filters (#604)
Co-authored-by: Sebastian Lorenz <fubhy@fubhy.com>
2023-12-11 10:12:31 +01:00
Giulio Canti ebd1fd6d44 ensure that JSON Schema annotations can be exclusively applied to ref… (#645) 2023-12-10 11:00:48 +01:00
Giulio Canti 86736917af ParseResult: rename ParseErrors to ParseIssue (#640) 2023-12-07 09:52:10 +01:00
Giulio Canti cf05e9473d Schema: rename lazy to suspend (to align with Effect.suspend), closes… (#636) 2023-12-07 09:34:41 +01:00
Giulio Canti 3785d38b7d JSONSchema: rename JsonSchema7Top to JsonSchema7Root, closes #634 (#635) 2023-12-07 09:29:46 +01:00
Giulio Canti 7b5285f063 chore: add record('a' | prefix-${string}, number) test (#637) 2023-12-07 08:23:31 +01:00
Tim 2c220780b1 update effect (#632) 2023-12-06 15:46:09 +13:00
Timandgcanti 9463b6c3bb add Serializable module (#609)
Co-authored-by: gcanti <giulio.canti@gmail.com>
2023-12-06 15:23:47 +13:00
Giulio Canti d3af6ce4f2 Schema: add filter overloading returning Option<ParseError> (#629) 2023-12-05 15:56:10 +01:00
Giulio Canti 8f45996566 S.rename: handle field transformations, closes #625 (#626) 2023-12-04 23:39:14 +01:00
Giulio Canti 203ffee440 Schema: add fromJson combinator (#621) 2023-12-04 09:40:39 +01:00
Matheus Michalski Puel 3b507a2215 add Schema.mapLiterals (#617) 2023-12-03 18:58:43 +01:00
Giulio Canti 92bf23d319 improve JSON Schema output (#585) 2023-11-28 18:41:59 +01:00
Giulio Canti 54aa5f9f97 Refactor ParseResult APIs (#593) 2023-11-28 18:30:45 +01:00
Giulio Canti 29e4a8c704 Bug Fix: align index signature behaviour to TypeScript (#607) 2023-11-28 18:20:53 +01:00
Giulio Canti b5cd64ac18 TreeFormatter: enhance formatActual for data types with a custom `t… (#603) 2023-11-24 14:10:18 +01:00
Jesse KellyandSebastian Lorenz 24027681c8 Add BigDecimal (#597)
Co-authored-by: Sebastian Lorenz <fubhy@fubhy.com>
2023-11-23 19:46:08 +01:00
Tim 6cf7cc3c16 add _tag to TaggedRequest.Base (#595) 2023-11-23 10:46:57 +13:00
Sebastian Lorenz 0c55d9ab3e add support for Duration (#582) 2023-11-22 15:40:51 +01:00
Giulio Canti 88ac6d9779 Parser: should use the original ast to generate a more informative error m… (#590) 2023-11-22 12:18:34 +01:00
Giulio Canti 84d701711e DateFromSelf: its arbitrary should also generate "Invalid Date"s (#587) 2023-11-22 09:39:56 +01:00
Tim 6310424cae fix missing class .struct schema (#580) 2023-11-21 14:13:13 +13:00
Tim 8e81615a30 add TaggedRequest class (#574) 2023-11-21 13:29:19 +13:00
Giulio Canti b26c96968b Effect.catchTag can be used to catch ParseError (#572) 2023-11-18 08:38:29 +01:00