Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to generate separate JSON schema files #1478

Merged
merged 3 commits into from
Nov 22, 2022

Conversation

uint
Copy link
Contributor

@uint uint commented Nov 7, 2022

Closes #1476

I didn't add clap as a dep here since it felt like overkill, but it can be integrated in the future if these binaries become more complicated.

println!(" --help");
println!(" Print this helpfile.");
return;
}
Copy link
Member

Choose a reason for hiding this comment

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

Souldn't this code live somewhere in the CLI code (close to some main function)? write_api_impl should take the switch as an argument.

I guess the issue is that the contract developer owns the binaries. Maybe we should change that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it would be super cool if cargo schema was a binary you install with cargo install, but I get the feeling that wouldn't be so easy to do

@uint
Copy link
Contributor Author

uint commented Nov 21, 2022

Rebased and applied suggestion from #1476 (comment)

@webmaster128 webmaster128 merged commit 89cfede into main Nov 22, 2022
@webmaster128 webmaster128 deleted the separate-schema-files branch November 22, 2022 08:57
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.

Add option to export raw JSON Schema files
2 participants