Skip to content

Allow partial options info responses#8

Open
chrishoage wants to merge 1 commit into
rclone:mainfrom
chrishoage:fix/options-info
Open

Allow partial options info responses#8
chrishoage wants to merge 1 commit into
rclone:mainfrom
chrishoage:fix/options-info

Conversation

@chrishoage

Copy link
Copy Markdown

Summary

Correct the /options/info response schema to support filtered section responses and the option values returned by rclone.

When callers use blocks to request only selected sections, omitted sections should not cause response validation to fail. Some option values are also returned as strings, such as "1ns" for duration options, while the current schema only permits booleans, numbers, and null.

Changes

  • Make the named OptionsInfoResponse sections optional
  • Allow OptionsInfoOption.Value to contain any JSON value
  • Regenerate openapi.json and types.d.ts

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