0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-17 22:31:28 -05:00

refactor(core): allow empty relation array for PUT

This commit is contained in:
Gao Sun 2023-10-28 01:27:10 +08:00
parent 929f2d6c37
commit d012008fd5
No known key found for this signature in database
GPG key ID: 13EBE123E4773688

View file

@ -310,7 +310,7 @@ export default class SchemaRouter<
`/:id/${pathname}`,
koaGuard({
params: z.object({ id: z.string().min(1) }),
body: z.object({ [columns.relationSchemaIds]: z.string().min(1).array().nonempty() }),
body: z.object({ [columns.relationSchemaIds]: z.string().min(1).array() }),
status: [204, 422],
}),
async (ctx, next) => {