Skip to content

Commit

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

Please sign in to comment.