Skip to content

Commit 69aab8f

Browse files
delvedorgithub-actions[bot]
authored andcommitted
Fix required properties (#615)
1 parent bd48583 commit 69aab8f

File tree

9 files changed

+33
-22
lines changed

9 files changed

+33
-22
lines changed

output/schema/schema.json

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20939,7 +20939,19 @@
2093920939
"name": "Request",
2094020940
"namespace": "_global.render_search_template"
2094120941
},
20942-
"path": [],
20942+
"path": [
20943+
{
20944+
"name": "id",
20945+
"required": false,
20946+
"type": {
20947+
"kind": "instance_of",
20948+
"type": {
20949+
"name": "Id",
20950+
"namespace": "_types"
20951+
}
20952+
}
20953+
}
20954+
],
2094320955
"query": []
2094420956
},
2094520957
{
@@ -82053,7 +82065,7 @@
8205382065
"path": [
8205482066
{
8205582067
"name": "policy",
82056-
"required": false,
82068+
"required": true,
8205782069
"type": {
8205882070
"kind": "instance_of",
8205982071
"type": {
@@ -82771,7 +82783,7 @@
8277182783
"path": [
8277282784
{
8277382785
"name": "policy",
82774-
"required": false,
82786+
"required": true,
8277582787
"type": {
8277682788
"kind": "instance_of",
8277782789
"type": {
@@ -90062,7 +90074,7 @@
9006290074
"path": [
9006390075
{
9006490076
"name": "index",
90065-
"required": false,
90077+
"required": true,
9006690078
"type": {
9006790079
"kind": "instance_of",
9006890080
"type": {
@@ -112704,7 +112716,7 @@
112704112716
{
112705112717
"description": "A string that uniquely identifies a calendar.",
112706112718
"name": "calendar_id",
112707-
"required": false,
112719+
"required": true,
112708112720
"type": {
112709112721
"kind": "instance_of",
112710112722
"type": {
@@ -124422,7 +124434,7 @@
124422124434
"path": [
124423124435
{
124424124436
"name": "ids",
124425-
"required": false,
124437+
"required": true,
124426124438
"type": {
124427124439
"kind": "instance_of",
124428124440
"type": {

output/schema/validation-errors.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,12 +1339,6 @@
13391339
],
13401340
"response": []
13411341
},
1342-
"render_search_template": {
1343-
"request": [
1344-
"Endpoint has \"@stability: TODO"
1345-
],
1346-
"response": []
1347-
},
13481342
"rollup.delete_job": {
13491343
"request": [
13501344
"Endpoint has \"@stability: TODO"

output/typescript/types.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,7 @@ export interface ReindexRethrottleResponse {
907907
}
908908

909909
export interface RenderSearchTemplateRequest extends RequestBase {
910+
id?: Id
910911
body?: {
911912
file?: string
912913
params?: Record<string, any>
@@ -8053,7 +8054,7 @@ export interface IlmPolicy {
80538054
}
80548055

80558056
export interface IlmDeleteLifecycleRequest extends RequestBase {
8056-
policy?: Name
8057+
policy: Name
80578058
}
80588059

80598060
export interface IlmDeleteLifecycleResponse extends AcknowledgedResponseBase {
@@ -8141,7 +8142,7 @@ export interface IlmMoveToStepStepKey {
81418142
}
81428143

81438144
export interface IlmPutLifecycleRequest extends RequestBase {
8144-
policy?: Name
8145+
policy: Name
81458146
body?: {
81468147
policy?: IlmPolicy
81478148
}
@@ -8963,7 +8964,7 @@ export interface IndicesPutIndexTemplateResponse extends AcknowledgedResponseBas
89638964
}
89648965

89658966
export interface IndicesPutMappingRequest extends RequestBase {
8966-
index?: Indices
8967+
index: Indices
89678968
type?: Type
89688969
allow_no_indices?: boolean
89698970
expand_wildcards?: ExpandWildcards
@@ -11559,7 +11560,7 @@ export interface MlOpenJobResponse {
1155911560
}
1156011561

1156111562
export interface MlPostCalendarEventsRequest extends RequestBase {
11562-
calendar_id?: Id
11563+
calendar_id: Id
1156311564
body?: {
1156411565
events: MlCalendarEvent[]
1156511566
}
@@ -12948,7 +12949,7 @@ export interface SecurityChangePasswordResponse {
1294812949
}
1294912950

1295012951
export interface SecurityClearApiKeyCacheRequest extends RequestBase {
12951-
ids?: Ids
12952+
ids: Ids
1295212953
}
1295312954

1295412955
export interface SecurityClearApiKeyCacheResponse {

specification/_global/render_search_template/RenderSearchTemplateRequest.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,17 @@
2020
import { Dictionary } from '@spec_utils/Dictionary'
2121
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
2222
import { RequestBase } from '@_types/Base'
23+
import { Id } from '@_types/common'
2324

2425
/**
2526
* @rest_spec_name render_search_template
2627
* @since 0.0.0
2728
* @stability TODO
2829
*/
2930
export interface Request extends RequestBase {
31+
path_parts?: {
32+
id?: Id
33+
}
3034
query_parameters?: {}
3135
body?: {
3236
file?: string

specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ import { Name } from '@_types/common'
2727
*/
2828
export interface Request extends RequestBase {
2929
path_parts?: {
30-
policy?: Name
30+
policy: Name
3131
}
3232
}

specification/ilm/put_lifecycle/PutLifecycleRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { Name } from '@_types/common'
2828
*/
2929
export interface Request extends RequestBase {
3030
path_parts?: {
31-
policy?: Name
31+
policy: Name
3232
}
3333
body?: {
3434
policy?: Policy

specification/indices/put_mapping/IndicesPutMappingRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import { Time } from '@_types/Time'
4444
*/
4545
export interface Request extends RequestBase {
4646
path_parts?: {
47-
index?: Indices
47+
index: Indices
4848
type?: Type
4949
}
5050
query_parameters?: {

specification/ml/post_calendar_events/MlPostCalendarEventsRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { CalendarEvent } from '../_types/CalendarEvent'
2929
export interface Request extends RequestBase {
3030
path_parts?: {
3131
/** A string that uniquely identifies a calendar. */
32-
calendar_id?: Id
32+
calendar_id: Id
3333
}
3434
body: {
3535
/** A list of one of more scheduled events. The event’s start and end times may be specified as integer milliseconds since the epoch or as a string in ISO 8601 format. */

specification/security/clear_api_key_cache/SecurityClearApiKeyCacheRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ import { Ids } from '@_types/common'
2727
*/
2828
export interface Request extends RequestBase {
2929
path_parts?: {
30-
ids?: Ids
30+
ids: Ids
3131
}
3232
}

0 commit comments

Comments
 (0)