Skip to content

Commit 5462ef4

Browse files
tobiokibanamachine
authored andcommitted
Items expects a single field, not a list (elastic#233414)
## Summary From the [spec](https://swagger.io/docs/specification/v3_0/data-models/data-types/#arrays) the `items` field should be a single schema defining the types within an array. If the array may contain multiple types then the schema should combine those types via `oneOf`. Related to elastic#228077 ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [x] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [x] [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 - [x] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [x] This was checked for breaking HTTP API changes, and any breaking changes have been approved by the breaking-change committee. The `release_note:breaking` label should be applied in these situations. - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. --------- Co-authored-by: kibanamachine <[email protected]>
1 parent cac0582 commit 5462ef4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

oas_docs/output/kibana.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63078,7 +63078,7 @@ paths:
6307863078
]
6307963079
schema:
6308063080
items:
63081-
- $ref: '#/components/schemas/Synthetics_getParameterResponse'
63081+
$ref: '#/components/schemas/Synthetics_getParameterResponse'
6308263082
type: array
6308363083
description: A successful response.
6308463084
summary: Get parameters
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"./oas_docs/output/kibana.yaml": 314,
2+
"./oas_docs/output/kibana.yaml": 312,
33
"./oas_docs/output/kibana.serverless.yaml": 294
44
}

x-pack/solutions/observability/plugins/synthetics/docs/openapi/synthetic_apis.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ paths:
522522
schema:
523523
type: array
524524
items:
525-
- $ref: "#/components/schemas/getParameterResponse"
525+
$ref: "#/components/schemas/getParameterResponse"
526526
examples:
527527
getParametersResponseExample1:
528528
summary: Read access

0 commit comments

Comments
 (0)