Skip to content

Fix doc comment on type for schema subcommand - #493

Merged
leighmcculloch merged 1 commit into
stellar:mainfrom
drebelsky:fix-typo
Feb 3, 2026
Merged

leighmcculloch merged 1 commit into
stellar:mainfrom
drebelsky:fix-typo

Conversation

@drebelsky

@drebelsky drebelsky commented Feb 3, 2026 •

Copy link
Copy Markdown
Contributor

The current documentation for the schema subcommand is a little misleading: --type <TYPE> is documented as "XDR type to decode." This just updates it to say "XDR type to generate schema for," instead.

$ stellar-xdr types schema --help
Usage: stellar-xdr types schema [OPTIONS] --type <TYPE>

Options:
      --type <TYPE>      XDR type to decode
      --output <OUTPUT>  [default: json-schema-draft201909] [possible values: json-schema-draft201909]
  -h, --help             Print help

Copilot AI review requested due to automatic review settings February 3, 2026 00:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR corrects misleading documentation for the schema subcommand. The help text previously incorrectly stated that the --type parameter was for "XDR type to decode," when in fact the command generates JSON schemas for XDR types, not decodes them.

Changes:

  • Updated the doc comment for the --type parameter in the schema subcommand to accurately reflect its purpose

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@leighmcculloch
leighmcculloch added this pull request to the merge queue Feb 3, 2026
Merged via the queue into stellar:main with commit 99f3687 Feb 3, 2026
18 of 19 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.

3 participants