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

Change claim output format to JSON #133

Merged
merged 3 commits into from
Sep 4, 2023
Merged

Change claim output format to JSON #133

merged 3 commits into from
Sep 4, 2023

Conversation

bbyalcinkaya
Copy link
Member

Currently, the claim generator outputs claims in pretty-printed format. Changed the default output format to JSON. Added an optional command line flag -p/--pretty to enable pretty-printing.

@bbyalcinkaya bbyalcinkaya marked this pull request as ready for review September 4, 2023 06:14

txt = krun.pretty_print(claim) # TODO wrap this in a spec module with imports
output_file = output_dir / f'{endpoint}-spec.{ext}'
Copy link
Contributor

Choose a reason for hiding this comment

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

FWIW, instead of the two lines below you could probably just use

output_file.write_text(txt)

@rv-jenkins rv-jenkins merged commit 2d2a57f into master Sep 4, 2023
5 checks passed
@rv-jenkins rv-jenkins deleted the json-claims branch September 4, 2023 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants