Skip to content

_async responses can cause issues in some clients #1

@chrishoage

Description

@chrishoage

When issuing commands with _async the response will not be what the spec defines, instead one with executeId and jobId

For this OpenAPI spec to be a faithful reproduction of the rclone rc API, should any job which uses GlobalAsyncParam also have a oneOf with a an AsyncJobResponse?

Another idea would be to to see if a 202 could be returned by rcd when _async is sent, and then this would be fairly easy to handle here and in clients, since the response code would allow for generators to handle this as well.

That would require patching rclone, which may not be accepted.

Curious your thoughts?

Thank you for the work on this OpenAPI spec, it's really valuable to have this resource to generate clients!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions