Skip to content

Commit 0f7a417

Browse files
resolve validation errors under OpenAPI 3.0
specifically: - "items" must be present if type is "array" - "description" must be present in a responses object
1 parent fbfd730 commit 0f7a417

2 files changed

Lines changed: 97 additions & 2 deletions

File tree

defs/app_components_oas.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
openapi: 3.0.0
2+
openapi: 3.0.4
33
info:
44
description: >-
55
This is the interface for handling requests for
@@ -904,6 +904,18 @@ components:
904904
[FormField-RichText](/reference/modal-forms#formfield-richtext), [FormField-SingleLineText](/reference/modal-forms#formfield-singlelinetext),
905905
[FormField-StaticText](/reference/modal-forms#formfield-statictext), [FormField-Typeahead](/reference/modal-forms#formfield-typeahead)
906906
type: array
907+
items:
908+
anyOf:
909+
- $ref: '#/components/schemas/FormField-Checkbox'
910+
- $ref: '#/components/schemas/FormField-Date'
911+
- $ref: '#/components/schemas/FormField-Datetime'
912+
- $ref: '#/components/schemas/FormField-Dropdown'
913+
- $ref: '#/components/schemas/FormField-MultiLineText'
914+
- $ref: '#/components/schemas/FormField-RadioButton'
915+
- $ref: '#/components/schemas/FormField-RichText'
916+
- $ref: '#/components/schemas/FormField-SingleLineText'
917+
- $ref: '#/components/schemas/FormField-StaticText'
918+
- $ref: '#/components/schemas/FormField-Typeahead'
907919
on_submit_callback:
908920
description: >-
909921
The URL to `POST` the form to when the user clicks the submit button.
@@ -1435,6 +1447,11 @@ components:
14351447
14361448
Valid object schemas: [WidgetField-DatetimeWithIcon](/reference/widgets#widgetfield-datetimewithicon), [WidgetField-Pill](/reference/widgets#widgetfield-pill), [WidgetField-TextWithIcon](/reference/widgets#widgetfield-textwithicon).
14371449
type: array
1450+
items:
1451+
anyOf:
1452+
- $ref: '#/components/schemas/DatetimeWithIcon'
1453+
- $ref: '#/components/schemas/WidgetField-Pill'
1454+
- $ref: '#/components/schemas/WidgetField-TextWithIcon'
14381455
subtitle:
14391456
description: >-
14401457
The text to show under the title of the widget, next to "Open in {App Name}". If not provided, the

0 commit comments

Comments
 (0)