Skip to content

Commit 287dc2f

Browse files
committed
Tweak wording on content and file field overrides
1 parent 9aadfdf commit 287dc2f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

actions/files.upload.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ parameters:
1717
type: string
1818
content:
1919
required: false
20-
description: "File contents via a POST variable. If omitting this parameter, you must provide either `file` or `content`."
20+
description: "File contents via a POST variable. If omitting this parameter, you must provide either `file` or `file_path`."
2121
type: string
2222
file:
2323
required: false
24-
description: "File contents via `multipart/form-data`. If omitting this parameter, you must provide either `file` or `content`."
24+
description: "File contents via `multipart/form-data`. If omitting this parameter, you must provide either `file_path` or `content`."
2525
type: string
2626
file_path:
2727
required: false

bin/generate_openapi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
'name': 'content',
2626
'type': 'string',
2727
'required': False,
28-
'description': 'File contents via a POST variable. If omitting this parameter, you must provide either `file` or `content`.', # noqa: E501
28+
'description': 'File contents via a POST variable. If omitting this parameter, you must provide either `file` or `file_path`.', # noqa: E501
2929
},
3030
'file': {
3131
'name': 'file',
3232
'type': 'string',
3333
'required': False,
34-
'description': 'File contents via `multipart/form-data`. If omitting this parameter, you must provide either `file` or `content`.', # noqa: E501
34+
'description': 'File contents via `multipart/form-data`. If omitting this parameter, you must provide either `file_path` or `content`.', # noqa: E501
3535
},
3636
'file_path': {
3737
'name': 'file_path',

0 commit comments

Comments
 (0)