Skip to content

Add ast command and indent JSON 4 spaces#435

Merged
mtdowling merged 1 commit intomasterfrom
fix-node-indent-and-add-ast-command
May 13, 2020
Merged

Add ast command and indent JSON 4 spaces#435
mtdowling merged 1 commit intomasterfrom
fix-node-indent-and-add-ast-command

Conversation

@mtdowling
Copy link
Copy Markdown
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