Skip to content

Commit

Permalink
Add yaml validation file support
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaldvogel committed Jan 2, 2024
1 parent a00762f commit a68c1c7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ public enum FileExtensions implements FileExtension {
XML("xml"),
JSON("json"),
JSON5("json5"),
YAML("yaml"),
DIFF("diff"),
CSV("csv"),
MD("md"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,22 @@ default void assertWithJson5File(String actualJsonString, ValidationNormalizer v
assertWithFile(actualJsonString, validationNormalizer, FileExtensions.JSON5);
}

default void assertWithYamlFile(String actualJsonString) {
assertWithFile(actualJsonString, FileExtensions.YAML);
}

default void assertWithYamlFileWithSuffix(String actualJsonString, String suffix) {
assertWithFileWithSuffix(actualJsonString, suffix, FileExtensions.YAML);
}

default void assertWithYamlFileWithSuffix(String actualJsonString, ValidationNormalizer validationNormalizer, String suffix) {
assertWithFileWithSuffix(actualJsonString, validationNormalizer, suffix, FileExtensions.YAML);
}

default void assertWithYamlFile(String actualJsonString, ValidationNormalizer validationNormalizer) {
assertWithFile(actualJsonString, validationNormalizer, FileExtensions.YAML);
}

default void assertWithXmlFile(String actualXmlString) {
assertWithFile(actualXmlString, FileExtensions.XML);
}
Expand Down

0 comments on commit a68c1c7

Please sign in to comment.