Skip to content

Commit

Permalink
Adding description for the create route
Browse files Browse the repository at this point in the history
  • Loading branch information
doakalexi committed Sep 17, 2024
1 parent 83ea6ed commit f117cdf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ export const connectorResponseSchema = schema.object({
schema.boolean({ meta: { description: 'Indicates whether the connector is missing secrets.' } })
),
is_preconfigured: schema.boolean({
meta: { description: 'Indicates whether the connector is preconfigured. If true, the `config` and `is_missing_secrets` properties are omitted from the response. ' },
meta: {
description:
'Indicates whether the connector is preconfigured. If true, the `config` and `is_missing_secrets` properties are omitted from the response. ',
},
}),
is_deprecated: schema.boolean({
meta: { description: 'Indicates whether the connector is deprecated.' },
Expand Down
4 changes: 3 additions & 1 deletion x-pack/plugins/actions/server/routes/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export const createActionRoute = (
request: {
params: schema.maybe(
schema.object({
id: schema.maybe(schema.string()),
id: schema.maybe(
schema.string({ meta: { description: 'An identifier for the connector.' } })
),
})
),
body: bodySchema,
Expand Down

0 comments on commit f117cdf

Please sign in to comment.