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 ast command and indent JSON 4 spaces #435

Merged
merged 1 commit into from
May 13, 2020

Conversation

mtdowling
Copy link
Member

This commit adds support for an ast command in the CLI to convert 0 or
more Smithy models into a JSON AST. This can be used to more easily
combine multiple models or for simply testing parser implementations.
This change also updates the default indentation for JSON pretty
printing to use 4 spaces instead of 2 since that's what is used
throughout the Smithy specification.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This commit adds support for an `ast` command in the CLI to convert 0 or
more Smithy models into a JSON AST. This can be used to more easily
combine multiple models or for simply testing parser implementations.
This change also updates the default indentation for JSON pretty
printing to use 4 spaces instead of 2 since that's what is used
throughout the Smithy specification.
@mtdowling mtdowling requested a review from JordonPhillips May 13, 2020 00:23
@mtdowling mtdowling merged commit 42faf2f into master May 13, 2020
@kstich kstich mentioned this pull request May 13, 2020
@mtdowling mtdowling deleted the fix-node-indent-and-add-ast-command branch May 14, 2020 22:13
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