Releases: dataliquid/json-yaml-validator-maven-plugin
Releases · dataliquid/json-yaml-validator-maven-plugin
v2.0.0
What's Changed
Breaking Changes
Dependencies
- Upgrade networknt json-schema-validator from 2.0.1 to 3.0.0 (#67)
- Upgrade Jackson from 2.x to 3.0.3
- Add SnakeYAML 2.5 for proper YAML alias resolution
Improvements
- Refactored to use Java 17 language features (Records, Switch Expressions)
- Restored YAML alias test (accidentally deleted in #51)
Full Changelog: 1.2.0...2.0.0
v1.2.0
v1.1.0
What's Changed
New Features
- Added negative testing support with expectedResult, expectedErrors and strictErrorMatching parameters (#51, #59)
Fixes
Contributors
Special thanks to @zstadler for reporting both issues and contributing code improvements
Full Changelog: v1.0.1...1.1.0
v1.0.1
What's Changed
Fixes
- Fixed groupId to use com.dataliquid.maven for Maven Central publication (#18, #19)
- Fixed GitHub Actions Java version to match project requirements (#35)
- Fixed code scanning alert for workflow permissions
Enhancements
- Added Gitflow workflows with proper permissions (#21)
- Added Maven Central badge to documentation
- Updated parent-oss from 2.0.0 to 2.1.0 (#27)
Dependency Updates
- Bump com.networknt:json-schema-validator from 1.5.7 to 1.5.8 (#30)
- Bump com.fasterxml.jackson.core:jackson-databind from 2.19.0 to 2.19.2 (#28, #32)
- Bump com.fasterxml.jackson.dataformat:jackson-dataformat-yaml from 2.19.0 to 2.19.2 (#29, #33)
- Bump commons-io:commons-io from 2.19.0 to 2.20.0 (#34)
Full Changelog: v1.0.0...v1.0.1
v1.0.0
🎉 Initial Release
The JSON/YAML Validator Maven Plugin provides automated validation of JSON and YAML files against JSON Schema during your Maven build process.
✨ Features
- Multiple Schema Versions: Support for JSON Schema Draft 4, 6, 7, 2019-09, and 2020-12
- Flexible File Selection: Use glob patterns to include/exclude files for validation
- Schema Mapping: Map schema IDs to local files or directories for offline validation
- Build Integration: Runs during Maven's validate phase by default
- Error Control: Configure whether validation failures should fail the build
📦 Installation
Add to your pom.xml:
<plugin>
<groupId>com.dataliquid.maven</groupId>
<artifactId>json-yaml-validator-maven-plugin</artifactId>
<version>1.0.0</version>
<executions>
<execution>
<goals>
<goal>validate</goal>
</goals>
</execution>
</executions>
<configuration>
<schemaVersion>V7</schemaVersion>
<schemas>
<schema>schemas/my-schema.json</schema>
</schemas>
<includes>
<include>**/*.json</include>
<include>**/*.yaml</include>
</includes>
</configuration>
</plugin>🚀 Quick Start
# Validate all JSON/YAML files
mvn validate
# Skip validation
mvn validate -Dschema.validator.skip=true📖 Documentation
See the README for detailed configuration options and examples.
🙏 Acknowledgments
Built on top of the excellent networknt/json-schema-validator library.