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

Disable validation of output smithy files by default. #219

Merged

Conversation

Baccata
Copy link
Contributor

@Baccata Baccata commented Dec 6, 2023

This makes the tool a little bit more lenient for some users. A flag is added to re-enable validation.

also changes the CLI options to be kebab-cased

Todo

  • Fix modules that don't compile
  • Add unit tests to check that validation of output can be re-enabled.
  • Amend README to expose new options

@Baccata Baccata marked this pull request as ready for review December 7, 2023 10:38
@Baccata Baccata mentioned this pull request Dec 7, 2023
@@ -64,7 +64,7 @@ _Note: this library is published to work on Java 8 and above. However, you will
### CLI Usage

The `smithytranslate` CLI will recursively go through all child directories of the
input directory provided and format any Smithy files it finds. The output
input directory provided and format any Smithy files it finds. The output
Copy link
Contributor

Choose a reason for hiding this comment

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

unrelated to your PR, but it seems like the output is just a leftover incomplete sentence

@@ -123,13 +123,15 @@ Options and flags:
Display this help text.
--input <path>, -i <path>
input source files
--verboseNames
Copy link
Contributor

Choose a reason for hiding this comment

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

thanks for aligning all CLI options on kebab

Copy link
Contributor

@daddykotex daddykotex left a comment

Choose a reason for hiding this comment

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

I love what I see, thanks for updating the readme section of the formatter

@daddykotex daddykotex merged commit fc02fea into main Dec 7, 2023
3 checks passed
@Baccata Baccata deleted the allow-for-avoiding-validation-of-output-smithy-files branch December 8, 2023 07:21
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