Commit graph

50 commits

Author SHA1 Message Date
Olup
50bf7b22cf
fix(openapi): use ZModel AST array flag for TypeDef[] @json fields (#2314)
Co-authored-by: Yiming <yiming@whimslab.io>
Co-authored-by: Claude <noreply@anthropic.com>
2025-12-04 08:41:13 +08:00
Yiming Cao
8c98060dac
fix: zod4 compatibility with server package (#2234) 2025-09-08 15:39:08 -07:00
Yiming Cao
8bbe2190d9
chore: extract a zod error format utility for v3/v4 uniform handling (#2232) 2025-09-07 21:34:13 -07:00
Yiming Cao
e7983976fc
chore: update to prisma 6.15 (#2228) 2025-08-29 21:59:37 +08:00
Olup
94a6dc20e9
feat(openapi): add TypeDef support to RPC OpenAPI generator (#2222)
Co-authored-by: Yiming <yiming@whimslab.io>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2025-08-17 10:31:55 +08:00
Lena Georgescu
18dd6f0d30
feat: option to include models tagged with @openapi.ignore in the spec file (#2221) 2025-08-17 10:21:46 +08:00
Yiming Cao
f88979604b
chore: update zod-validation-error (#2216) 2025-08-09 10:13:59 +08:00
Olup
a93d73da16
feat(openapi): add ordering and pagination to RPC findMany endpoints (#2207) 2025-08-06 23:13:54 +08:00
Lukas Kahwe Smith
f2c272598d
feat: add ability to map model names in the URLS/JSON response (#2187)
Co-authored-by: Tobias Brugger <tobias.brugger@bfh.ch>
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2025-07-18 21:51:19 +08:00
FTB_lag
6e147e9685
chore: replace some unused/small/deprecated/long-updated dependencies and remove some spaces (#2144)
Co-authored-by: Yiming Cao <yiming@whimslab.io>
2025-06-20 21:27:20 +08:00
Yiming Cao
82232d99d8
fix(openapi): ensure output folder created (#2090) 2025-04-15 16:25:48 -07:00
Yiming Cao
c41addd482
fix(openapi): support spec generation for JSON fields (#2089) 2025-04-15 16:15:43 -07:00
Yiming
f609c862ed
fix(openapi): type "id" field according to ZModel schema type (#1929) 2024-12-30 17:39:59 +08:00
Thomas Sunde Nielsen
545898bd93
fix(openapi): bugfix for compound id create and update (#1855) 2024-11-26 09:30:57 -08:00
Thomas Sunde Nielsen
fdb68626d2
Don't expose foreign keys as attributes in openAPI spec (#1856) 2024-11-17 13:50:53 -08:00
Yiming
3134f0df1e
feat(openapi): add plugin option to omit generating input object details for RPC flavor (#1852) 2024-11-13 20:48:42 -08:00
Thomas Sunde Nielsen
c344f77941
Improve working with entities related to entities that uses compound ids (#1801)
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2024-10-25 09:04:49 -07:00
Thomas Sunde Nielsen
ff997e7bcd
Mark openapi attributes as required for reads (#1772)
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2024-10-14 12:47:16 -07:00
Thomas Sunde Nielsen
a2c78a18db
OpenApi @@id support (#1757)
Co-authored-by: Yiming <yiming@whimslab.io>
2024-10-08 10:23:17 -07:00
Yiming
e4e9fbfc42
fix(openapi): wrong spec for "Meta" object for rpc-style generation (#1673) 2024-08-30 12:33:04 -07:00
Yiming
b22c6a3ce2
fix: avoid importing prisma-related code into language server (#1441) 2024-05-12 18:35:43 +08:00
Yiming
296ca259c8
fix: compatibility with Prisma's "omit" feature (#1432) 2024-05-11 15:54:35 +08:00
Yiming
420df87bf1
merge v2 to dev (#1281)
Co-authored-by: Augustin <43639468+Azzerty23@users.noreply.github.com>
Co-authored-by: Jonathan Stevens <jonathan.stevens@resnovas.com>
Co-authored-by: Jonathan S <jonathan.stevens@eventiva.co.uk>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: ErikMCM <70036542+ErikMCM@users.noreply.github.com>
Co-authored-by: Jason Kleinberg <ustice@gmail.com>
Co-authored-by: Jonathan S <punk.gift9475@alias.org.uk>
Co-authored-by: Jiasheng <jiashengguo@outlook.com>
2024-04-24 21:19:41 +08:00
Yiming
813748160e
fix(openapi): CreateManyArgs does not take array as input (#1246) 2024-04-12 15:04:23 +08:00
Yiming
0e422adf1a
fix: properly handle nullable fields in openapi generator (#906) 2023-12-25 15:42:42 +08:00
Yiming
42d654fcfa
feat: improved automatic query invalidation for tanstack-query (#790) 2023-10-31 20:11:44 -07:00
Yiming
787a24453c
fix: openapi - do not generate "id" field in create input if the field has default value (#758) 2023-10-13 17:35:02 -07:00
Yiming
b5da998b7f
feat: include raw zod errors in response (#691) 2023-09-14 18:58:19 -07:00
Yiming
b44976dee5
chore: remove aux fields (unused since a few release ago) (#662) 2023-09-01 10:07:26 +08:00
Yiming
0cb7cd1ae5
fix: zod and openapi generation error when "fullTextSearch" is enabled (#658) 2023-08-31 07:25:32 +08:00
Yiming
32d5b262ca
fix: bugs related to model name casing (#645) 2023-08-23 16:16:24 +08:00
Yiming
b0d9154270
feat: support Prisma v5 (#587) 2023-07-18 22:56:53 +08:00
Yiming
46fec666c3
feat: always use superjson to serialize/deserialize in the api layer (#585) 2023-07-17 18:29:22 +08:00
Yiming
2280f83cd7
feature: a better "zod" plugin (#521) 2023-06-30 15:25:53 +08:00
Yiming
2855647510
fix: open-api issues (#446) 2023-06-02 09:00:58 +08:00
Yiming
ec65e53f20
fix: change openapi plugin's default flavor to "rpc" (#439) 2023-05-30 08:09:24 +09:00
Yiming
e76ee35bdb
fix: bug fixes for openapi plugin (#432) 2023-05-27 20:57:46 +09:00
Jiasheng
a3473eaec2
fix: Update start line of JsDoc comments in zmodel to start with two … (#428) 2023-05-22 14:50:42 +01:00
Yiming
9eaf2353e4
fix: canonicalize plugin's output folder detection; don't generate aux field unnecessarily (#423) 2023-05-20 22:02:00 +09:00
Yiming
a5848ea5ef
fix: openapi plugin - make sure components are generated even model is marked ignored (#422) 2023-05-20 12:22:42 +09:00
Yiming
4ebaa1fa4a
feat: restful style openapi spec generation (#410) 2023-05-12 10:48:56 -07:00
Yiming
d6fba93e2f
fix: zod plugin issue with lower-case model names (#396) 2023-05-05 17:37:24 -07:00
Yiming
2860f002e5
feat: implement openapi security inferrence and override (#341) 2023-04-10 23:21:07 -07:00
Yiming
3b9e3567b8
feat: improvements of openapi plugin (#335) 2023-04-07 11:51:22 -07:00
Yiming
f1c9765b77
fix: openapi generator relation handling (#320) 2023-03-31 21:01:00 +08:00
Yiming
dd62f8d13c
fix: openapi plugin bugs - relation handling and spec version (#317) 2023-03-31 18:42:31 +08:00
Thomas Horner
fe74a805db feat: generate openapi doc with 3.1.0 version 2023-03-28 23:29:17 -06:00
Yiming
6f7cb0e651
fix: handle @@ignore models properly in plugins (#283) 2023-03-21 11:58:26 +08:00
Yiming
e1600c8bc6
fix: batch bug fixes (#273) 2023-03-19 19:37:00 +08:00
Yiming
dd9963cd35
feat: OpenAPI & fastify adapter (#254) 2023-03-10 17:20:44 +08:00