mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(api): 🐛 Don't use URL in Versia entity schemas, fixes OpenAPI
This commit is contained in:
parent
0a712128a5
commit
a2e907390f
12 changed files with 131 additions and 102 deletions
|
|
@ -11,7 +11,4 @@ export const u64 = z
|
|||
.nonnegative()
|
||||
.max(2 ** 64 - 1);
|
||||
|
||||
export const url = z
|
||||
.string()
|
||||
.url()
|
||||
.transform((z) => new URL(z));
|
||||
export const url = z.string().url();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue