Skip to content

Commit 45c1839

Browse files
authored
Fix required properties (#615)
1 parent 5c74537 commit 45c1839

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
@@ -20882,7 +20882,19 @@
2088220882
"name": "Request",
2088320883
"namespace": "_global.render_search_template"
2088420884
},
20885-
"path": [],
20885+
"path": [
20886+
{
20887+
"name": "id",
20888+
"required": false,
20889+
"type": {
20890+
"kind": "instance_of",
20891+
"type": {
20892+
"name": "Id",
20893+
"namespace": "_types"
20894+
}
20895+
}
20896+
}
20897+
],
2088620898
"query": []
2088720899
},
2088820900
{
@@ -81996,7 +82008,7 @@
8199682008
"path": [
8199782009
{
8199882010
"name": "policy",
81999-
"required": false,
82011+
"required": true,
8200082012
"type": {
8200182013
"kind": "instance_of",
8200282014
"type": {
@@ -82714,7 +82726,7 @@
8271482726
"path": [
8271582727
{
8271682728
"name": "policy",
82717-
"required": false,
82729+
"required": true,
8271882730
"type": {
8271982731
"kind": "instance_of",
8272082732
"type": {
@@ -90005,7 +90017,7 @@
9000590017
"path": [
9000690018
{
9000790019
"name": "index",
90008-
"required": false,
90020+
"required": true,
9000990021
"type": {
9001090022
"kind": "instance_of",
9001190023
"type": {
@@ -112666,7 +112678,7 @@
112666112678
{
112667112679
"description": "A string that uniquely identifies a calendar.",
112668112680
"name": "calendar_id",
112669-
"required": false,
112681+
"required": true,
112670112682
"type": {
112671112683
"kind": "instance_of",
112672112684
"type": {
@@ -124372,7 +124384,7 @@
124372124384
"path": [
124373124385
{
124374124386
"name": "ids",
124375-
"required": false,
124387+
"required": true,
124376124388
"type": {
124377124389
"kind": "instance_of",
124378124390
"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
@@ -901,6 +901,7 @@ export interface ReindexRethrottleResponse {
901901
}
902902

903903
export interface RenderSearchTemplateRequest extends RequestBase {
904+
id?: Id
904905
body?: {
905906
file?: string
906907
params?: Record<string, any>
@@ -8047,7 +8048,7 @@ export interface IlmPolicy {
80478048
}
80488049

80498050
export interface IlmDeleteLifecycleRequest extends RequestBase {
8050-
policy?: Name
8051+
policy: Name
80518052
}
80528053

80538054
export interface IlmDeleteLifecycleResponse extends AcknowledgedResponseBase {
@@ -8135,7 +8136,7 @@ export interface IlmMoveToStepStepKey {
81358136
}
81368137

81378138
export interface IlmPutLifecycleRequest extends RequestBase {
8138-
policy?: Name
8139+
policy: Name
81398140
body?: {
81408141
policy?: IlmPolicy
81418142
}
@@ -8957,7 +8958,7 @@ export interface IndicesPutIndexTemplateResponse extends AcknowledgedResponseBas
89578958
}
89588959

89598960
export interface IndicesPutMappingRequest extends RequestBase {
8960-
index?: Indices
8961+
index: Indices
89618962
type?: Type
89628963
allow_no_indices?: boolean
89638964
expand_wildcards?: ExpandWildcards
@@ -11554,7 +11555,7 @@ export interface MlOpenJobResponse {
1155411555
}
1155511556

1155611557
export interface MlPostCalendarEventsRequest extends RequestBase {
11557-
calendar_id?: Id
11558+
calendar_id: Id
1155811559
body?: {
1155911560
events: MlCalendarEvent[]
1156011561
}
@@ -12942,7 +12943,7 @@ export interface SecurityChangePasswordResponse {
1294212943
}
1294312944

1294412945
export interface SecurityClearApiKeyCacheRequest extends RequestBase {
12945-
ids?: Ids
12946+
ids: Ids
1294612947
}
1294712948

1294812949
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)