smithy-examples/linting-and-validation-exam.../custom-validator
dependabot[bot] 3c143286e1
Bump the gradle group with 4 updates (#100)
Bumps the gradle group with 4 updates: [org.junit.jupiter:junit-jupiter-api](https://github.com/junit-team/junit5), [org.junit.jupiter:junit-jupiter-engine](https://github.com/junit-team/junit5), [org.junit.jupiter:junit-jupiter-params](https://github.com/junit-team/junit5) and [org.junit.jupiter:junit-jupiter](https://github.com/junit-team/junit5).


Updates `org.junit.jupiter:junit-jupiter-api` from 5.10.2 to 5.10.3
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.10.2...r5.10.3)

Updates `org.junit.jupiter:junit-jupiter-engine` from 5.10.2 to 5.10.3
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.10.2...r5.10.3)

Updates `org.junit.jupiter:junit-jupiter-params` from 5.10.2 to 5.10.3
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.10.2...r5.10.3)

Updates `org.junit.jupiter:junit-jupiter` from 5.10.2 to 5.10.3
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.10.2...r5.10.3)

---
updated-dependencies:
- dependency-name: org.junit.jupiter:junit-jupiter-api
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle
- dependency-name: org.junit.jupiter:junit-jupiter-engine
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle
- dependency-name: org.junit.jupiter:junit-jupiter-params
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle
- dependency-name: org.junit.jupiter:junit-jupiter
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gradle
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-05 08:52:15 -06:00
..
src Linting examples (#26) 2023-06-22 12:30:34 -06:00
README.md Linting examples (#26) 2023-06-22 12:30:34 -06:00
build.gradle.kts Bump the gradle group with 4 updates (#100) 2024-07-05 08:52:15 -06:00
settings.gradle.kts Use gradle.properties for gradle plugin version (#71) 2024-02-14 10:24:00 -07:00
smithy-build.json Linting examples (#26) 2023-06-22 12:30:34 -06:00

README.md

Custom Validator Package

Use this package to create a custom model validator. This package can be included as a dependency in other Smithy projects to enforce API standards across multiple packages.

Building

To build this package run the following from the root of the package:

./gradlew clean build

This will generate a build directory containing the build artifacts generated by gradle. The generated JAR file that should be used by downstream consumers can be found at build/libs/custom-validator.jar

Customization

To customize this package, start by updating the settings.gradle.kts file and update the rootProject.name property to the desired name of your package. Also update the description at the top of the build.gradle.kts file.

Next, update the java class DocumentationClassValidator class to perform your desired validation.

Finally, update the io.smithy.examples.validators.DocumentationValidator entry in the src/main/resources/META-INF/services/software.amazon.smithy.model.validation.Validator file to reflect the new name and package of your updated validator.

Distribution

If you want to distribute the JAR file create by this package, consider adding the maven-publish plugin to the project to publish the JAR to a maven repository.