-
Notifications
You must be signed in to change notification settings - Fork 154
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
feat: extend split and join commands to produce JSON output #1305
Conversation
🦋 Changeset detectedLatest commit: 39a5c8a The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Coverage report
Test suite run success645 tests passing in 93 suites. Report generated by 🧪jest coverage report action from 39a5c8a |
8e4da06
to
83d854b
Compare
docs/commands/join.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dont we need to update docs for split command as well ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need to update the docs. This feature was originally reported as a bug, the split command doesn't mention what it can output (but it only supported YAML until now) and a user expected it to work with JSON too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tweak for the changelog language, but otherwise this looks good to me, I can't see where we would update the split command docs, the feature works as I expected it to, and I'm excited to be able to share this with the customer when we merge and release :)
Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>
Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>
Co-authored-by: Andrew Tatomyr <andrew.tatomyr@redocly.com>
Co-authored-by: Lorna Jane Mitchell <github@lornajane.net>
2c64201
to
39a5c8a
Compare
What/Why/How?
Extend
split
andjoin
commands to optionally produce JSON output.Split
Determine the output format by the extension of the input file, if the extension is not supported use
yaml
Supported file extensions:
json
,yaml
,yml
Join
Determine the output format by the extension of the file from
output
option, if output option is not provided use extension of first entry point, if extension not supported useyaml
.Supported file extensions:
json
,yaml
,yml
Reference
Related: #1205
Testing
Screenshots (optional)
Check yourself
Security