mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Fleet] Fix GET /package_policies schema (#161774)
## Summary
Followup fix to https://github.com/elastic/kibana/pull/160921/files.
In the above PR, I had flagged the following issue:

As it turns out, this was due to inadvertently removing the
`ListWithKuerySchema` from the schema definition for `GET
/package_policies`, which escaped code review. This PR fixes that.
### Checklist
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
### For maintainers
- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
This commit is contained in:
parent
ac4635417f
commit
88d45238f9
1 changed files with 2 additions and 5 deletions
|
@ -15,13 +15,10 @@ import {
|
|||
|
||||
import { inputsFormat } from '../../../common/constants';
|
||||
|
||||
import { BulkRequestBodySchema } from './common';
|
||||
import { ListWithKuerySchema, BulkRequestBodySchema } from './common';
|
||||
|
||||
export const GetPackagePoliciesRequestSchema = {
|
||||
query: schema.object({
|
||||
page: schema.number({ defaultValue: 1 }),
|
||||
perPage: schema.number({ defaultValue: 20 }),
|
||||
kuery: schema.maybe(schema.string()),
|
||||
query: ListWithKuerySchema.extends({
|
||||
format: schema.maybe(
|
||||
schema.oneOf([schema.literal(inputsFormat.Simplified), schema.literal(inputsFormat.Legacy)])
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue