Change legacy import 'version' field to optional (#79706)

This commit is contained in:
Joe Portner 2020-10-06 17:19:02 -04:00 committed by GitHub
parent fd4eacd29f
commit 1ba86666b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 }),