8
0
Files
perl-JSON-Validator/perl-JSON-Validator.spec
Cris Dywan 6824661832 Accepting request 901134 from devel:languages:perl:autoupdate
- updated to 4.20
   see /usr/share/doc/packages/perl-JSON-Validator/Changes
  4.20 2021-06-18T11:27:02+0900
   - Fix compiling array items #249
   - Fix coerce() will be passed on to schema() objects
   - Add is_invalid() to JSON::Validator::Schema
   - Improved documentation for JSON::Validator and JSON::Validator::Schema
   - Changed joi validator to default to a JSON::Validator::Schema::Draft7 object
   - Deprecated validate(..., $schema)
   - Removed support for coerce(1)
   - Removed support for subclassing JSON::Validator. Need to subclass a schema
     class instead.
   - Simpler inheritance for Schema classes
  4.19 2021-06-17T12:37:10+0900
   - Fix generating correct base_url() object with host and port
  4.18 2021-06-17T11:13:58+0900
   - Fix content_type validation for OpenAPIv2 and OpenAPIv3
   - Fix validating multipart\/form-data with boundary
   - Fix validating content-type with charset
   - Fix parsing OpenAPIv3 spec with "description", "servers" and "summary" in a
     path specifiation.

OBS-URL: https://build.opensuse.org/request/show/901134
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-Validator?expand=0&rev=65
2021-06-29 09:57:01 +00:00

66 lines
2.0 KiB
RPMSpec

#
# spec file for package perl-JSON-Validator
#
# Copyright (c) 2021 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/
#
%define cpan_name JSON-Validator
Name: perl-JSON-Validator
Version: 4.20
Release: 0
Summary: Validate data against a JSON schema
License: Artistic-2.0
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/J/JH/JHTHORSEN/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(List::Util) >= 1.45
BuildRequires: perl(Mojolicious) >= 7.28
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::More) >= 1.30
BuildRequires: perl(YAML::XS) >= 0.67
Requires: perl(List::Util) >= 1.45
Requires: perl(Mojolicious) >= 7.28
Requires: perl(YAML::XS) >= 0.67
%{perl_requires}
%description
JSON::Validator is a data structure validation library based around at
https://json-schema.org/. This module can be used directly with a JSON
schema or you can use the elegant DSL schema-builder JSON::Validator::Joi
to define the schema programmatically.
%prep
%autosetup -n %{cpan_name}-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes CONTRIBUTING.md README.md
%changelog