Skip to content

Commit

Permalink
Change legacy import 'version' field to optional (elastic#79706)
Browse files Browse the repository at this point in the history
  • Loading branch information
jportner committed Oct 6, 2020
1 parent 57b4db0 commit 4237b41
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) => {
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 4237b41

Please sign in to comment.