# # spec file for package networknt-json-schema-validator # # Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: networknt-json-schema-validator Version: 1.5.8 Release: 0 Summary: A fast Java JSON schema validator License: Apache-2.0 Group: Development/Libraries/Java URL: https://github.com/networknt/json-schema-validator Source0: %{url}/archive/refs/tags/%{version}.tar.gz Patch0: 00-no-graalvm.patch BuildRequires: fdupes BuildRequires: maven-local BuildRequires: mvn(com.ethlo.time:itu) BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind) BuildRequires: mvn(com.fasterxml.jackson.dataformat:jackson-dataformat-yaml) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.jruby.joni:joni) BuildRequires: mvn(org.moditect:moditect-maven-plugin) BuildArch: noarch %description This is a Java implementation of the JSON Schema Core Draft v4, v6, v7, v2019-09 and v2020-12 specification for JSON schema validation. This implementation supports Customizing Meta-Schemas, Vocabularies, Keywords and Formats. In addition, OpenAPI 3 request/response validation is supported with the use of the appropriate meta-schema. For users who want to collect information from a JSON node based on the schema, the walkers can help. The JSON parser used is the Jackson parser. As it is a key component in our light-4j microservices framework to validate request/response against OpenAPI specification for light-rest-4j and RPC schema for light-hybrid-4j at runtime, performance is the most important aspect in the design. %package javadoc Summary: API documentation for %{name} Group: Documentation/HTML %description javadoc API documentation for %{name}. %prep %autosetup -p1 -n json-schema-validator-%{version} rm src/main/java/com/networknt/schema/regex/GraalJS*.java %pom_remove_plugin :maven-source-plugin %pom_remove_plugin :maven-javadoc-plugin %pom_remove_plugin org.jacoco:jacoco-maven-plugin %pom_remove_plugin org.apache.maven.plugins:maven-surefire-plugin %pom_remove_dep org.graalvm.js:js %pom_remove_dep org.graalvm.sdk:graal-sdk %{mvn_file} : %{name} %build %{mvn_build} -f -- \ -Dsource=8 %install %mvn_install %fdupes %{buildroot}%{_javadocdir}/%{name} %files -f .mfiles %license NOTICE LICENSE %doc {CHANGELOG,README}.md %files javadoc -f .mfiles-javadoc %license NOTICE LICENSE %changelog