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:
parent
929f2d6c37
commit
d012008fd5
1 changed files with 1 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue