box / box/box-ios-sdk

Make `name` in `UploadFileVersionRequestBodyAttributesField ` optional

Open
#1,201 2 comments 0 reactions 6 assignees Claimed by @mwwoda View on GitHub
enhancement
Dominant language
Swift
Stars
130
Forks
111
Avg merge
17h 58m
Merged PRs (30d)
13

Description

### Is your feature request related to a problem? Please describe.

It's not really a problem because there is a workaround, but I believe that it could be a mistake in the API specification.

### Describe the solution you'd like

I'd like `name` in `UploadFileVersionRequestBodyAttributesField` to be optional.

### Describe alternatives you've considered

As a workaround, you can set the `name` to be the previous name, so that there shouldn't be any change.

### Additional context

https://developer.box.com/reference/post-files-id-content/

I'm aware that the API specification says `required`, but the comment says `optional`. And I believe that optional makes more sense so that you can avoid unwanted renames of an existing file during upload.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.