Skip to content

Commit

Permalink
Change legacy import 'version' field to optional (#79706)
Browse files Browse the repository at this point in the history
  • Loading branch information
jportner authored Oct 6, 2020
1 parent fd4eacd commit 1ba8666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/legacy_export/server/routes/import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
Expand Down

0 comments on commit 1ba8666

Please sign in to comment.