Skip to content

Cover the remaining API parameters and fields - #94

Merged
ilyabrin merged 1 commit into
mainfrom
feat/api-coverage
Oct 7, 2026
Merged

ilyabrin merged 1 commit into
mainfrom
feat/api-coverage

Conversation

@ilyabrin

@ilyabrin ilyabrin commented Oct 7, 2026

Copy link
Copy Markdown
Owner

What

Checked against the API schema, these were missing. All additions;
nothing existing changes.

  • Copy and move: overwrite, force_async (CopyMoveOptions)
  • Delete: force_async, md5 (DeleteOptions)
  • Last uploaded: media type filter, previews
  • Public resources: type filter, previews (PublicResourcesOptions)
  • Trash list: sort, previews (TrashListOptions); restore: force_async
  • Upload by URL: disable_redirects; save public resource: save_path,
    force_async
  • Disk: paid max file size, mail/disk/photo sizes, overdraft warning,
    monthly traffic limit, upgrades, registration time and more
  • Back from v1.0.1: system folders scans, attach, messenger, calendar,
    and Exif GPS
  • Resource.Sizes (all preview sizes); User.IsChild, User.RegTime

GPS coordinates use a Coordinate type: the schema leaves their type
open and the API sandbox returns {}, which would otherwise fail the
whole resource.

Checked locally

Tests for every new parameter and field; go vet, go test ./... (also
as 386), golangci-lint v2.13.2; yad builds and passes its tests
against this branch.

New *WithOptions variants for copy, move, delete, restore, the trash
list, last uploaded and public resources, and upload by URL, adding
overwrite, force_async, md5, filters, sorting and previews. The
existing methods call them and do not change.

Disk, User, Resource and Exif gain the fields the API returns,
including those lost in v1.1.0. GPS coordinates use a Coordinate type
that tolerates the empty object the API schema allows, so an odd value
cannot fail a whole listing.
@ilyabrin
ilyabrin merged commit 3a6b4ef into main Oct 7, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant