Allow for ID in create package policy request (#100908) (#101053)

E2E tests are failing because they include the ID field returned by the
package list endpoint. This just updates our request schema to accept an
ID, though we don't persist or deal with the ID anywhere.

Closes #100897

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
This commit is contained in:
Kibana Machine 2021-06-01 11:24:48 -04:00 committed by GitHub
parent c18944f156
commit 8a205e3bb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,6 +82,7 @@ const PackagePolicyBaseSchema = {
export const NewPackagePolicySchema = schema.object({
...PackagePolicyBaseSchema,
id: schema.maybe(schema.string()),
force: schema.maybe(schema.boolean()),
});