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 examples of validators to documentation #1702

Merged
merged 5 commits into from
Apr 7, 2023

Conversation

hpmellema
Copy link
Contributor

Description of changes:
This pull request adds a number of example linters to as a subpage of the Validator page.

These examples are not exhaustive, but are intended to show users some of the ways smithy validators can prevent common bugs and enforce a common style in their Smithy models.

Testing
I checked each validator against a local model to make sure error messages formatted correctly and that they could be parsed. Then I generated the docs using the make html command and visually checked the generated html.

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

@hpmellema hpmellema requested a review from a team as a code owner March 31, 2023 14:24
docs/source-2.0/guides/model-validation-examples.rst Outdated Show resolved Hide resolved
docs/source-2.0/guides/model-validation-examples.rst Outdated Show resolved Hide resolved
docs/source-2.0/guides/index.rst Outdated Show resolved Hide resolved
docs/source-2.0/guides/model-validation-examples.rst Outdated Show resolved Hide resolved
docs/source-2.0/guides/model-validation-examples.rst Outdated Show resolved Hide resolved
docs/source-2.0/guides/model-validation-examples.rst Outdated Show resolved Hide resolved
docs/source-2.0/guides/model-validation-examples.rst Outdated Show resolved Hide resolved
docs/source-2.0/guides/model-validation-examples.rst Outdated Show resolved Hide resolved
docs/source-2.0/guides/model-validation-examples.rst Outdated Show resolved Hide resolved
docs/source-2.0/guides/model-validation-examples.rst Outdated Show resolved Hide resolved
@hpmellema hpmellema merged commit 37170e3 into smithy-lang:main Apr 7, 2023
@hpmellema hpmellema deleted the validation-examples branch April 7, 2023 17:53
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