Change legacy import 'version' field to optional (#79706)
This commit is contained in:
parent
fd4eacd29f
commit
1ba86666b1
|
@ -28,7 +28,7 @@ export const registerImportRoute = (router: IRouter, maxImportPayloadBytes: numb
|
|||
validate: {
|
||||
body: schema.object({
|
||||
objects: schema.arrayOf(schema.recordOf(schema.string(), schema.any())),
|
||||
version: schema.string(),
|
||||
version: schema.maybe(schema.string()),
|
||||
}),
|
||||
query: schema.object({
|
||||
force: schema.boolean({ defaultValue: false }),
|
||||
|
|
Loading…
Reference in a new issue