Skip to content

Commit

Permalink
[DOCS] Add missing assignees to payload
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl committed Nov 10, 2022
1 parent b67df81 commit b88aa39
Show file tree
Hide file tree
Showing 10 changed files with 117 additions and 180 deletions.
63 changes: 24 additions & 39 deletions docs/api-generated/cases/case-apis-passthru.asciidoc

Large diffs are not rendered by default.

93 changes: 36 additions & 57 deletions x-pack/plugins/cases/docs/openapi/bundled.json
Original file line number Diff line number Diff line change
Expand Up @@ -1939,6 +1939,24 @@
}
},
"schemas": {
"assignees": {
"type": "array",
"description": "An array containing users that are assigned to the case.",
"nullable": true,
"items": {
"type": "object",
"required": [
"uid"
],
"properties": {
"uid": {
"type": "string",
"description": "A unique identifier for the user profile. These identifiers can be found by using the suggest user profile API.",
"example": "u_0wpfV1MqYDaXzLtRVY-gLMrddKDEmfz51Fszhj7hWC8_0"
}
}
}
},
"connector_properties_none": {
"title": "Create or update case request properties for no connector",
"required": [
Expand Down Expand Up @@ -2354,22 +2372,7 @@
],
"properties": {
"assignees": {
"type": "array",
"description": "An array containing users that are assigned to the case.",
"nullable": true,
"items": {
"type": "object",
"required": [
"uid"
],
"properties": {
"uid": {
"type": "string",
"description": "A unique identifier for the user profile. These identifiers can be found by using the suggest user profile API.",
"example": "u_0wpfV1MqYDaXzLtRVY-gLMrddKDEmfz51Fszhj7hWC8_0"
}
}
}
"$ref": "#/components/schemas/assignees"
},
"connector": {
"oneOf": [
Expand Down Expand Up @@ -2828,22 +2831,7 @@
],
"properties": {
"assignees": {
"type": "array",
"description": "An array containing users that are assigned to the case.",
"nullable": true,
"items": {
"type": "object",
"required": [
"uid"
],
"properties": {
"uid": {
"type": "string",
"description": "A unique identifier for the user profile. You can use the get user profile API to retrieve more details.",
"example": "u_0wpfV1MqYDaXzLtRVY-gLMrddKDEmfz51Fszhj7hWC8_0"
}
}
}
"$ref": "#/components/schemas/assignees"
},
"closed_at": {
"type": "string",
Expand Down Expand Up @@ -2991,22 +2979,7 @@
],
"properties": {
"assignees": {
"type": "array",
"description": "An array containing users that are assigned to the case.",
"nullable": true,
"items": {
"type": "object",
"required": [
"uid"
],
"properties": {
"uid": {
"type": "string",
"description": "A unique identifier for the user profile. These identifiers can be found by using the suggest user profile API.",
"example": "u_0wpfV1MqYDaXzLtRVY-gLMrddKDEmfz51Fszhj7hWC8_0"
}
}
}
"$ref": "#/components/schemas/assignees"
},
"connector": {
"oneOf": [
Expand Down Expand Up @@ -3416,15 +3389,7 @@
"type": "object",
"properties": {
"assignees": {
"type": "array",
"items": {
"type": "object",
"properties": {
"uid": {
"type": "string"
}
}
}
"$ref": "#/components/schemas/assignees"
}
}
},
Expand Down Expand Up @@ -3529,6 +3494,9 @@
"payload_create_case": {
"type": "object",
"properties": {
"assignees": {
"$ref": "#/components/schemas/assignees"
},
"connector": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -3761,6 +3729,17 @@
},
"user_actions_response_properties": {
"type": "object",
"required": [
"action",
"action_id",
"case_id",
"comment_id",
"created_at",
"created_by",
"owner",
"payload",
"type"
],
"properties": {
"action": {
"$ref": "#/components/schemas/actions"
Expand Down
71 changes: 29 additions & 42 deletions x-pack/plugins/cases/docs/openapi/bundled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,19 @@ components:
type: string
example: abed3a70-71bd-11ea-a0b2-c51ea50a58e2
schemas:
assignees:
type: array
description: An array containing users that are assigned to the case.
nullable: true
items:
type: object
required:
- uid
properties:
uid:
type: string
description: A unique identifier for the user profile. These identifiers can be found by using the suggest user profile API.
example: u_0wpfV1MqYDaXzLtRVY-gLMrddKDEmfz51Fszhj7hWC8_0
connector_properties_none:
title: Create or update case request properties for no connector
required:
Expand Down Expand Up @@ -1539,18 +1552,7 @@ components:
- title
properties:
assignees:
type: array
description: An array containing users that are assigned to the case.
nullable: true
items:
type: object
required:
- uid
properties:
uid:
type: string
description: A unique identifier for the user profile. These identifiers can be found by using the suggest user profile API.
example: u_0wpfV1MqYDaXzLtRVY-gLMrddKDEmfz51Fszhj7hWC8_0
$ref: '#/components/schemas/assignees'
connector:
oneOf:
- $ref: '#/components/schemas/connector_properties_none'
Expand Down Expand Up @@ -1888,18 +1890,7 @@ components:
- version
properties:
assignees:
type: array
description: An array containing users that are assigned to the case.
nullable: true
items:
type: object
required:
- uid
properties:
uid:
type: string
description: A unique identifier for the user profile. You can use the get user profile API to retrieve more details.
example: u_0wpfV1MqYDaXzLtRVY-gLMrddKDEmfz51Fszhj7hWC8_0
$ref: '#/components/schemas/assignees'
closed_at:
type: string
format: date-time
Expand Down Expand Up @@ -1997,18 +1988,7 @@ components:
- version
properties:
assignees:
type: array
description: An array containing users that are assigned to the case.
nullable: true
items:
type: object
required:
- uid
properties:
uid:
type: string
description: A unique identifier for the user profile. These identifiers can be found by using the suggest user profile API.
example: u_0wpfV1MqYDaXzLtRVY-gLMrddKDEmfz51Fszhj7hWC8_0
$ref: '#/components/schemas/assignees'
connector:
oneOf:
- $ref: '#/components/schemas/connector_properties_none'
Expand Down Expand Up @@ -2290,12 +2270,7 @@ components:
type: object
properties:
assignees:
type: array
items:
type: object
properties:
uid:
type: string
$ref: '#/components/schemas/assignees'
payload_connector:
type: object
properties:
Expand Down Expand Up @@ -2372,6 +2347,8 @@ components:
payload_create_case:
type: object
properties:
assignees:
$ref: '#/components/schemas/assignees'
connector:
type: object
properties:
Expand Down Expand Up @@ -2536,6 +2513,16 @@ components:
example: create_case
user_actions_response_properties:
type: object
required:
- action
- action_id
- case_id
- comment_id
- created_at
- created_by
- owner
- payload
- type
properties:
action:
$ref: '#/components/schemas/actions'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
type: array
description: An array containing users that are assigned to the case.
nullable: true
items:
type: object
required:
- uid
properties:
uid:
type: string
description: A unique identifier for the user profile. These identifiers can be found by using the suggest user profile API.
example: u_0wpfV1MqYDaXzLtRVY-gLMrddKDEmfz51Fszhj7hWC8_0
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,7 @@ required:
- version
properties:
assignees:
type: array
description: An array containing users that are assigned to the case.
nullable: true
items:
type: object
required:
- uid
properties:
uid:
type: string
description: A unique identifier for the user profile. You can use the get user profile API to retrieve more details.
example: u_0wpfV1MqYDaXzLtRVY-gLMrddKDEmfz51Fszhj7hWC8_0
$ref: 'assignees.yaml'
closed_at:
type: string
format: date-time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,7 @@ required:
- title
properties:
assignees:
type: array
description: An array containing users that are assigned to the case.
nullable: true
items:
type: object
required:
- uid
properties:
uid:
type: string
description: A unique identifier for the user profile. These identifiers can be found by using the suggest user profile API.
example: u_0wpfV1MqYDaXzLtRVY-gLMrddKDEmfz51Fszhj7hWC8_0
$ref: 'assignees.yaml'
connector:
oneOf:
- $ref: 'connector_properties_none.yaml'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
type: object
properties:
assignees:
type: array
items:
type: object
properties:
uid:
type: string
$ref: 'assignees.yaml'
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
type: object
properties:
assignees:
$ref: 'assignees.yaml'
connector:
type: object
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,7 @@ properties:
- version
properties:
assignees:
type: array
description: An array containing users that are assigned to the case.
nullable: true
items:
type: object
required:
- uid
properties:
uid:
type: string
description: A unique identifier for the user profile. These identifiers can be found by using the suggest user profile API.
example: u_0wpfV1MqYDaXzLtRVY-gLMrddKDEmfz51Fszhj7hWC8_0
$ref: 'assignees.yaml'
connector:
oneOf:
- $ref: 'connector_properties_none.yaml'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
type: object
required:
- action
- action_id
- case_id
- comment_id
- created_at
- created_by
- owner
- payload
- type
properties:
action:
$ref: 'actions.yaml'
Expand Down

0 comments on commit b88aa39

Please sign in to comment.