-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Cases] Custom Fields API documentation (#166353)
## Summary This was missing in my previous PR #165671
- Loading branch information
Showing
5 changed files
with
132 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
x-pack/plugins/cases/docs/openapi/components/schemas/custom_fields_property.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
type: array | ||
description: Values for custom fields of a case | ||
minItems: 0 | ||
maxItems: 5 | ||
items: | ||
type: object | ||
required: | ||
- key | ||
- type | ||
- field | ||
properties: | ||
key: | ||
description: The key identifying the custom field. | ||
type: string | ||
type: | ||
description: The type of the custom field. Should match the key and how the custom field was configured | ||
type: string | ||
field: | ||
description: An object containing the value of the field. | ||
type: object | ||
required: | ||
- value | ||
properties: | ||
value: | ||
description: The value of the field. | ||
nullable: true | ||
type: array | ||
items: | ||
anyOf: | ||
- type: string | ||
- type: boolean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters