SR054
Severity: error
Summary: upload field is not listed in the endpoint input array
What this means
An endpoint has an upload: block, but the field named by upload.field does not appear in the endpoint’s input: list. The upload field must be declared in input so it is included in request parsing and validation.
Example that triggers this
endpoints:
upload_file:
method: POST
path: /assets/upload
input: []
upload:
field: file
storage: s3
max_size: 5mb
How to fix it
Add the upload field to the input array:
input: [file]