Files
networknt-json-schema-valid…/networknt-json-schema-validator.spec
Fridrich Strba bee254f701 Accepting request 1289706 from home:urbic:branches:Java:packages
- Update to v1.5.8
  * Changed
    + upgrade maven-gpg to 3.2.7
    + Fix walk with validate when node is null (#1169)
    + add central-publishing-maven-plugin
- Update to v1.5.7
  + Changed
    + upgrade nexus-staging version
    + Fix OverrideValidatorTest (#1159)
    + update slf4j to 2.0.17
    + update jackson to 2.18.3
- Update to v1.5.6
  * Changed
    + Set requires static for optional and excludable dependencies
      (#1155)
    + Fix NPE when walking a missing node that will have missing
      properties (#1152)
    + Fix relative iris with colons (#1147)
    + Fix explicit disabling of format assertions (#1145)
- Update to v1.5.5
  * Changed
    + Fix custom error message for union type (#1138)
    + Update itu 1.10.2 -> 1.10.3 (#1143)

OBS-URL: https://build.opensuse.org/request/show/1289706
OBS-URL: https://build.opensuse.org/package/show/Java:packages/networknt-json-schema-validator?expand=0&rev=4
2025-07-03 06:59:34 +00:00

90 lines
3.0 KiB
RPMSpec

#
# 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