Skip to content

Commit fd8a21a

Browse files
authored
Fixup application/json content types (#242615)
## Summary Does what it says on the tin, `application:json` isn't a valid content type. ### 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.
1 parent 7fdb50f commit fd8a21a

File tree

9 files changed

+35
-35
lines changed

9 files changed

+35
-35
lines changed

oas_docs/output/kibana.serverless.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69833,7 +69833,7 @@ paths:
6983369833
description: Indicates that the draft Timeline was successfully retrieved.
6983469834
'403':
6983569835
content:
69836-
application:json:
69836+
application/json:
6983769837
schema:
6983869838
type: object
6983969839
properties:
@@ -69844,7 +69844,7 @@ paths:
6984469844
description: If a draft Timeline was not found and we attempted to create one, it indicates that the user does not have the required permissions to create a draft Timeline.
6984569845
'409':
6984669846
content:
69847-
application:json:
69847+
application/json:
6984869848
schema:
6984969849
type: object
6985069850
properties:
@@ -69892,7 +69892,7 @@ paths:
6989269892
description: Indicates that the draft Timeline was successfully created. In the event the user already has a draft Timeline, the existing draft Timeline is cleared and returned.
6989369893
'403':
6989469894
content:
69895-
application:json:
69895+
application/json:
6989669896
schema:
6989769897
type: object
6989869898
properties:
@@ -69903,7 +69903,7 @@ paths:
6990369903
description: Indicates that the user does not have the required permissions to create a draft Timeline.
6990469904
'409':
6990569905
content:
69906-
application:json:
69906+
application/json:
6990769907
schema:
6990869908
type: object
6990969909
properties:
@@ -70019,7 +70019,7 @@ paths:
7001970019
description: Indicates the favorite status was successfully updated.
7002070020
'403':
7002170021
content:
70022-
application:json:
70022+
application/json:
7002370023
schema:
7002470024
type: object
7002570025
properties:
@@ -70164,7 +70164,7 @@ paths:
7016470164
description: Indicates the installation of prepackaged Timelines was successful.
7016570165
'500':
7016670166
content:
70167-
application:json:
70167+
application/json:
7016870168
schema:
7016970169
type: object
7017070170
properties:
@@ -70318,7 +70318,7 @@ paths:
7031870318
description: Indicates that the (template) Timelines were found and returned.
7031970319
'400':
7032070320
content:
70321-
application:json:
70321+
application/json:
7032270322
schema:
7032370323
type: object
7032470324
properties:

oas_docs/output/kibana.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75484,7 +75484,7 @@ paths:
7548475484
description: Indicates that the draft Timeline was successfully retrieved.
7548575485
'403':
7548675486
content:
75487-
application:json:
75487+
application/json:
7548875488
schema:
7548975489
type: object
7549075490
properties:
@@ -75495,7 +75495,7 @@ paths:
7549575495
description: If a draft Timeline was not found and we attempted to create one, it indicates that the user does not have the required permissions to create a draft Timeline.
7549675496
'409':
7549775497
content:
75498-
application:json:
75498+
application/json:
7549975499
schema:
7550075500
type: object
7550175501
properties:
@@ -75543,7 +75543,7 @@ paths:
7554375543
description: Indicates that the draft Timeline was successfully created. In the event the user already has a draft Timeline, the existing draft Timeline is cleared and returned.
7554475544
'403':
7554575545
content:
75546-
application:json:
75546+
application/json:
7554775547
schema:
7554875548
type: object
7554975549
properties:
@@ -75554,7 +75554,7 @@ paths:
7555475554
description: Indicates that the user does not have the required permissions to create a draft Timeline.
7555575555
'409':
7555675556
content:
75557-
application:json:
75557+
application/json:
7555875558
schema:
7555975559
type: object
7556075560
properties:
@@ -75670,7 +75670,7 @@ paths:
7567075670
description: Indicates the favorite status was successfully updated.
7567175671
'403':
7567275672
content:
75673-
application:json:
75673+
application/json:
7567475674
schema:
7567575675
type: object
7567675676
properties:
@@ -75815,7 +75815,7 @@ paths:
7581575815
description: Indicates the installation of prepackaged Timelines was successful.
7581675816
'500':
7581775817
content:
75818-
application:json:
75818+
application/json:
7581975819
schema:
7582075820
type: object
7582175821
properties:
@@ -75969,7 +75969,7 @@ paths:
7596975969
description: Indicates that the (template) Timelines were found and returned.
7597075970
'400':
7597175971
content:
75972-
application:json:
75972+
application/json:
7597375973
schema:
7597475974
type: object
7597575975
properties:

x-pack/solutions/security/plugins/security_solution/common/api/timeline/clean_draft_timelines/clean_draft_timelines_route.schema.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ paths:
3636
'403':
3737
description: Indicates that the user does not have the required permissions to create a draft Timeline.
3838
content:
39-
application:json:
39+
application/json:
4040
schema:
4141
type: object
4242
properties:
@@ -47,7 +47,7 @@ paths:
4747
'409':
4848
description: Indicates that there is already a draft Timeline with the given `timelineId`.
4949
content:
50-
application:json:
50+
application/json:
5151
schema:
5252
type: object
5353
properties:

x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_draft_timelines/get_draft_timelines_route.schema.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ paths:
2828
'403':
2929
description: If a draft Timeline was not found and we attempted to create one, it indicates that the user does not have the required permissions to create a draft Timeline.
3030
content:
31-
application:json:
31+
application/json:
3232
schema:
3333
type: object
3434
properties:
@@ -39,7 +39,7 @@ paths:
3939
'409':
4040
description: This should never happen, but if a draft Timeline was not found and we attempted to create one, it indicates that there is already a draft Timeline with the given `timelineId`.
4141
content:
42-
application:json:
42+
application/json:
4343
schema:
4444
type: object
4545
properties:

x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_timelines/get_timelines_route.schema.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ paths:
105105
'400':
106106
description: Bad request. The user supplied invalid data.
107107
content:
108-
application:json:
108+
application/json:
109109
schema:
110110
type: object
111111
properties:

x-pack/solutions/security/plugins/security_solution/common/api/timeline/install_prepackaged_timelines/install_prepackaged_timelines_route.schema.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ paths:
4646
'500':
4747
description: Indicates the installation of prepackaged Timelines was unsuccessful.
4848
content:
49-
application:json:
49+
application/json:
5050
schema:
5151
type: object
5252
properties:

x-pack/solutions/security/plugins/security_solution/common/api/timeline/persist_favorite/persist_favorite_route.schema.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ paths:
4444
'403':
4545
description: Indicates the user does not have the required permissions to persist the favorite status.
4646
content:
47-
application:json:
47+
application/json:
4848
schema:
4949
type: object
5050
properties:

x-pack/solutions/security/plugins/security_solution/docs/openapi/ess/security_solution_timeline_api_2023_10_31.bundled.schema.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ paths:
437437
description: Indicates that the draft Timeline was successfully retrieved.
438438
'403':
439439
content:
440-
application:json:
440+
application/json:
441441
schema:
442442
type: object
443443
properties:
@@ -451,7 +451,7 @@ paths:
451451
create a draft Timeline.
452452
'409':
453453
content:
454-
application:json:
454+
application/json:
455455
schema:
456456
type: object
457457
properties:
@@ -502,7 +502,7 @@ paths:
502502
Timeline is cleared and returned.
503503
'403':
504504
content:
505-
application:json:
505+
application/json:
506506
schema:
507507
type: object
508508
properties:
@@ -515,7 +515,7 @@ paths:
515515
create a draft Timeline.
516516
'409':
517517
content:
518-
application:json:
518+
application/json:
519519
schema:
520520
type: object
521521
properties:
@@ -615,7 +615,7 @@ paths:
615615
description: Indicates the favorite status was successfully updated.
616616
'403':
617617
content:
618-
application:json:
618+
application/json:
619619
schema:
620620
type: object
621621
properties:
@@ -748,7 +748,7 @@ paths:
748748
description: Indicates the installation of prepackaged Timelines was successful.
749749
'500':
750750
content:
751-
application:json:
751+
application/json:
752752
schema:
753753
type: object
754754
properties:
@@ -889,7 +889,7 @@ paths:
889889
description: Indicates that the (template) Timelines were found and returned.
890890
'400':
891891
content:
892-
application:json:
892+
application/json:
893893
schema:
894894
type: object
895895
properties:

x-pack/solutions/security/plugins/security_solution/docs/openapi/serverless/security_solution_timeline_api_2023_10_31.bundled.schema.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ paths:
437437
description: Indicates that the draft Timeline was successfully retrieved.
438438
'403':
439439
content:
440-
application:json:
440+
application/json:
441441
schema:
442442
type: object
443443
properties:
@@ -451,7 +451,7 @@ paths:
451451
create a draft Timeline.
452452
'409':
453453
content:
454-
application:json:
454+
application/json:
455455
schema:
456456
type: object
457457
properties:
@@ -502,7 +502,7 @@ paths:
502502
Timeline is cleared and returned.
503503
'403':
504504
content:
505-
application:json:
505+
application/json:
506506
schema:
507507
type: object
508508
properties:
@@ -515,7 +515,7 @@ paths:
515515
create a draft Timeline.
516516
'409':
517517
content:
518-
application:json:
518+
application/json:
519519
schema:
520520
type: object
521521
properties:
@@ -615,7 +615,7 @@ paths:
615615
description: Indicates the favorite status was successfully updated.
616616
'403':
617617
content:
618-
application:json:
618+
application/json:
619619
schema:
620620
type: object
621621
properties:
@@ -748,7 +748,7 @@ paths:
748748
description: Indicates the installation of prepackaged Timelines was successful.
749749
'500':
750750
content:
751-
application:json:
751+
application/json:
752752
schema:
753753
type: object
754754
properties:
@@ -889,7 +889,7 @@ paths:
889889
description: Indicates that the (template) Timelines were found and returned.
890890
'400':
891891
content:
892-
application:json:
892+
application/json:
893893
schema:
894894
type: object
895895
properties:

0 commit comments

Comments
 (0)