Skip to content

Fix required properties #615

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions output/schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -20882,7 +20882,19 @@
"name": "Request",
"namespace": "_global.render_search_template"
},
"path": [],
"path": [
{
"name": "id",
"required": false,
"type": {
"kind": "instance_of",
"type": {
"name": "Id",
"namespace": "_types"
}
}
}
],
"query": []
},
{
Expand Down Expand Up @@ -81996,7 +82008,7 @@
"path": [
{
"name": "policy",
"required": false,
"required": true,
"type": {
"kind": "instance_of",
"type": {
Expand Down Expand Up @@ -82714,7 +82726,7 @@
"path": [
{
"name": "policy",
"required": false,
"required": true,
"type": {
"kind": "instance_of",
"type": {
Expand Down Expand Up @@ -90005,7 +90017,7 @@
"path": [
{
"name": "index",
"required": false,
"required": true,
"type": {
"kind": "instance_of",
"type": {
Expand Down Expand Up @@ -112666,7 +112678,7 @@
{
"description": "A string that uniquely identifies a calendar.",
"name": "calendar_id",
"required": false,
"required": true,
"type": {
"kind": "instance_of",
"type": {
Expand Down Expand Up @@ -124372,7 +124384,7 @@
"path": [
{
"name": "ids",
"required": false,
"required": true,
"type": {
"kind": "instance_of",
"type": {
Expand Down
6 changes: 0 additions & 6 deletions output/schema/validation-errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -1339,12 +1339,6 @@
],
"response": []
},
"render_search_template": {
"request": [
"Endpoint has \"@stability: TODO"
],
"response": []
},
"rollup.delete_job": {
"request": [
"Endpoint has \"@stability: TODO"
Expand Down
11 changes: 6 additions & 5 deletions output/typescript/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,7 @@ export interface ReindexRethrottleResponse {
}

export interface RenderSearchTemplateRequest extends RequestBase {
id?: Id
body?: {
file?: string
params?: Record<string, any>
Expand Down Expand Up @@ -8047,7 +8048,7 @@ export interface IlmPolicy {
}

export interface IlmDeleteLifecycleRequest extends RequestBase {
policy?: Name
policy: Name
}

export interface IlmDeleteLifecycleResponse extends AcknowledgedResponseBase {
Expand Down Expand Up @@ -8135,7 +8136,7 @@ export interface IlmMoveToStepStepKey {
}

export interface IlmPutLifecycleRequest extends RequestBase {
policy?: Name
policy: Name
body?: {
policy?: IlmPolicy
}
Expand Down Expand Up @@ -8957,7 +8958,7 @@ export interface IndicesPutIndexTemplateResponse extends AcknowledgedResponseBas
}

export interface IndicesPutMappingRequest extends RequestBase {
index?: Indices
index: Indices
type?: Type
allow_no_indices?: boolean
expand_wildcards?: ExpandWildcards
Expand Down Expand Up @@ -11554,7 +11555,7 @@ export interface MlOpenJobResponse {
}

export interface MlPostCalendarEventsRequest extends RequestBase {
calendar_id?: Id
calendar_id: Id
body?: {
events: MlCalendarEvent[]
}
Expand Down Expand Up @@ -12942,7 +12943,7 @@ export interface SecurityChangePasswordResponse {
}

export interface SecurityClearApiKeyCacheRequest extends RequestBase {
ids?: Ids
ids: Ids
}

export interface SecurityClearApiKeyCacheResponse {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@
import { Dictionary } from '@spec_utils/Dictionary'
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'

/**
* @rest_spec_name render_search_template
* @since 0.0.0
* @stability TODO
*/
export interface Request extends RequestBase {
path_parts?: {
id?: Id
}
query_parameters?: {}
body?: {
file?: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ import { Name } from '@_types/common'
*/
export interface Request extends RequestBase {
path_parts?: {
policy?: Name
policy: Name
}
}
2 changes: 1 addition & 1 deletion specification/ilm/put_lifecycle/PutLifecycleRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { Name } from '@_types/common'
*/
export interface Request extends RequestBase {
path_parts?: {
policy?: Name
policy: Name
}
body?: {
policy?: Policy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import { Time } from '@_types/Time'
*/
export interface Request extends RequestBase {
path_parts?: {
index?: Indices
index: Indices
type?: Type
}
query_parameters?: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { CalendarEvent } from '../_types/CalendarEvent'
export interface Request extends RequestBase {
path_parts?: {
/** A string that uniquely identifies a calendar. */
calendar_id?: Id
calendar_id: Id
}
body: {
/** 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. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ import { Ids } from '@_types/common'
*/
export interface Request extends RequestBase {
path_parts?: {
ids?: Ids
ids: Ids
}
}