The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
Revision history for perl distribution JSON-Validator

3.00 2019-01-05T13:13:49+0900
 - Add enum() to Joi
 - Add support for a list of types passed on to Joi #136
 - Add support for file:// scheme in $ref #138
 - Fix $ref resolving after fixes applied to Mojo::JSON::Pointer in Mojolicious 8.11 #139
 - Fix cases where input was not coerced
 - Changed how format validation is done
 - Changed Joi to always coerce values
 - Removed JSON::Validator::OpenAPI

2.19  2018-12-07
 - Fix random errors when "type" is a list #126
 - Moved JSON::Validator::OpenAPI::Mojolicious to Mojolicious-Plugin-OpenAPI
 - Removed JSON::Validator::OpenAPI::Dancer2

2.18  2018-11-15
 - Add EXPERIMETNAL support for data:// without a package

2.17  2018-11-14
 - Add basic support for OpenAPI v3

2.16  2018-11-14
 - Improved openapi "date" format validation #123
   Contributor: Jason Cooper

2.15  2018-11-07
 - Did not need to bump Mojolicious version in 2.15 #122
   Contributor: Dagfinn Ilmari Mannsåker

2.14  2018-10-26
 - Fix guessing schema type from "required" key #118
 - Fix appending parameters for Mojolicious 8.00 #119 #120
 - Improved error return values from allOf, anyOf and oneOf validation
 - Will not overwrite OpenAPI "/info/version" from "version_from_class"

2.13  2018-10-17
 - Compatible with weak attrs in Mojolicious 8.03

2.12  2018-10-03
 - Improved error message when $ref is pointing to a non-existing file

2.11  2018-09-30
 - Skipping load-from-app.t on "Gateway Timeout" as well

2.10  2018-09-26
 - Fix handling of directory name with RFC 3986 reserved chars
   Contributor: Ed J

2.09  2018-09-26
 - Skip "remote ref" tests when running through cpantesters

2.08  2018-06-03
 - Fix validating oneOf correctly #103
 - Fix validating "id" property #111
 - Add support for $id keyword in draft7 #114
 - Bundle JSON Schema draft-06 and draft-07

2.07  2018-04-18
 - Fix joi->object->strict()
   Contributor: Pierre-Aymeric Masse

2.06  2018-04-09
 - Fix normalising file names on windows #102
 - Prevent "Use of uninitialized value $pointer in length..." for older Perls #104
 - Removed warning about coercion now, since it works well

2.05  2018-03-11
 - Fix hash randomization problem fot t/get.t #101

2.04  2018-03-10
 - Add JSON::Validator::JOI and joi() #63
 - Add support for get(|"x", undef, "y"])
 - Will catch if more than one parameter has "in":"body" #97
 - Fix file-path with ".." gets false negative for same-ref check #99

2.03  2018-02-15
 - Will not leak file system information to bundled schema

2.02  2018-01-30
 - Will let the user know if YAML::XS 0.67 (or later) need to be installed

2.01  2018-01-26
 - Fix bundle method not spotting "local" fqn when schema from URL
 - Forgot to remove deprecated JSON_VALIDATOR_CACHE_DIR in 2.00

2.00  2018-01-19
 - Fix validating against any enum value #22
 - Require YAML::XS 0.67 for proper boolean handling
 - Removed support for parsing YAML with YAML::Syck
 - Removed deprecated method load_and_validate_spec()

1.08  2017-12-24
 - Fix setting default value from $ref jhthorsen/mojolicious-plugin-openapi#53
 - Skip load-from-app.t if "Service Unavailable"

1.07  2017-11-27
 - Can load schame from internal app #85

1.06  2017-11-19
 - Add JSON::Validator::get()
 - Add JSON::Validator::bundle()
 - A $ref is tied hashes, represented by JSON::Validator::Ref

1.05  2017-10-22
 - Fix validating headers regardless of case #77
   Contributor: Aleksandr Orlenko
 - Improved boolean handling #76
   Contributor: Aleksandr Orlenko
 - Improved URI validation, fixes #74
 - Resolving "$ref" on the fly #65 #75 #79

1.04  2017-10-05
 - Avoid autovivification of "patternProperties" in the input schema #47

1.03  2017-09-25
 - Fix "uri" format validation, closes #70

1.02  2017-09-01
 - Fix validating "type" and "enum" #69

1.01  2017-08-19
 - Add support for fetching specification from local application

1.00  2017-06-20
 - Removed EXPERIMENTAL from JSON::Validator::OpenAPI (1.00)
 - Coerce integer numbers into booleans #67
   Contributor: @fabzzap

0.99  2017-06-12
 - Hopefully fixed some Windows issues #60

0.98  2017-05-21
 - Add support for "const" #62
   Contributor: Kevin Goess

0.97  2017-03-21
 - Require a newer version of Test::More to build

0.96  2017-03-06
 - Fix JSON::Validator::load_and_validate_schema()
 - Add handling of header/formData/query as array #38
 - Allow alternative date-time separator #49
 - Improved recursion tracking #52
 - More tests in t/acceptance.t are ok #52
 - Avoid loading the same file multiple times #54
 - Swagger2 is deprecated

0.95  2017-03-02
 - Add support for format "password"
 - Add load_and_validate_schema() to JSON::Validator #51
 - Started deprecating load_and_validate_spec()

0.94  2017-02-13
 - Fix t/issue-27-yaml-syck-false.t
 - Removed Carp::Always #47

0.93  2017-02-13
 - Fix coercing YAML booleans in input specification jhthorsen/mojolicious-plugin-openapi#24
 - Replace JSON_VALIDATOR_CACHE_DIR with JSON_VALIDATOR_CACHE_PATH
 - Remove deprecated cache_dir attribute

0.92  2017-01-18
 - Fix infinite recursion when resolving self referencing data structures

0.91  2017-01-10
 - Mojo::Util::slurp is DEPRECATED in favor of Mojo::File::slurp

0.90  2016-12-11
 - Add support for validating Dancer2 requset/responses #34
 - Fix invalidating integer/number path part with letters #37

0.89  2016-11-05
 - Fix multipleOf:0.01, closes #35

0.88  2016-11-04
 - Fix number coercion #32
   Contributor: @melhesedek
 - Add JSON::Validator::OpenAPI->load_and_validate_spec()

0.87  2016-10-20
 - Fix validating data when boolean.pm is loaded

0.86  2016-10-06
 - Documented bundled resources

0.85  2016-09-26
 - Fix handling of collectionFormat where no input is defined

0.84  2016-08-19
 - Removed support for passing $json_path to validate()
 - Fix guessing type of objects that has TO_JSON()

0.83  2016-08-16
 - Fix handling of true/false in schema, when loaded with YAML::Syck #27
 - Add EXPERIMENTAL support for passing $json_path to validate()

0.82  2016-08-09
 - Fix finding all $ref occurances jhthorsen/swagger2#95

0.81  2016-08-08
 - Add support for multiple cache dir search paths
 - Deperecated cache_dir()
 - Fix recurring requests with same path part jhthorsen/swagger2#93
 - Fix "Use of uninitialized value $schema_type..." warnings

0.80  2016-08-03
 - Fix parsing recursive schema

0.79  2016-07-28
 - Reverted improved allOf, anyOf and oneOf error messages

0.78  2016-07-28
 - Fix recursive dependencies #23
 - Add EXPERIMENTAL resolver attribute
 - Improved allOf, anyOf and oneOf error messages

0.77  2016-07-26
 - Avoid duplicate error messages with enum #22
 - Fix "false" must be false and not true in OpenAPI

0.76  2016-07-25
 - Will write default values into Mojolicious::Controller

0.75  2016-07-02
 - Fix uploads must not be slurped
 - Fix reporting error on missing response status definition
 - Add warnings on invalid (Perl) regexes

0.74  2016-06-22
 - Fix length($data) need be defined in 5.10

0.73  2016-06-22
 - Add http://git.io/vcKD4 error schema to cache
 - Add JSON schema for JSONPatch files
 - Updated Swagger2 spec to https://github.com/OAI/OpenAPI-Specification/blob/19fed9f0f812ccebe0fc45313fea75bb6656de1c/schemas/v2.0/schema.json

0.72  2016-06-10
 - Fix default cache_dir() path
 - JSON::Validator is no longer EXPERIMENTAL
 - Move Swagger2::SchemaValidator into JSON::Validator::OpenAPI

0.71  2016-06-07
 - Fix setting schema() inside validate()

0.70  2016-05-31
 - Fix allowing "id" as property name in objects

0.69  2016-05-26
 - Fix failing anyOf logic in t/swagger-validate-response-object.t

0.68  2016-05-25
 - Remove _merge_error to clarify anyOf errors #15

0.67  2016-04-11
 - Add JSON::Validator::Error class

0.66  2016-02-09
 - Fix validating recursive datastructures

0.65  2016-01-07
 - Fix t/swagger-validate-response-object.t require Swagger2 0.66 #14

0.64  2015-12-18
 - Fix treating JSON::PP::Boolean objects as boolean #13
   Contributor: Krasimir Berov
 - Allow hash reference as arguments to coerce #13
   Contributor: Krasimir Berov

0.63  2015-11-28
 - Fix skip test in t/booleans.t

0.62  2015-11-27
 - Remove support for YAML.pm #jhthorsen/swagger2#50
 - Remove support for YAML::Tiny #jhthorsen/swagger2#50

0.61  2015-11-11
 - Fix use of TO_JSON() on objects inside arrays #12

0.60  2015-11-09
 - Can use TO_JSON() when validating perl objects

0.59  2015-10-14
 - Move "collectionFormat" support to Swagger2

0.58  2015-10-13
 - Fix string "0" is not detected as boolean

0.57  2015-10-11
 - Trust guesswork if input data is undefined

0.56  2015-09-30
 - Can read YAML::XS booleans automatically #8
 - Change coerce() into a method. #8
 - Remove EXPERIMENTAL coerce attribute #8
 - Remove EXPERIMENTAL JSON_VALIDATOR_COERCE_VALUES and SWAGGER_COERCE_VALUES #8

0.55  2015-09-29
 - Fix "required" cannot be a boolean on properties
 - Improved documentation of error object
 - Change anyOf/allOf/oneOf error message

0.54  2015-09-27
 - Add support for $ref to relative path #3 #4 #5
 - Removed Swagger specific type "file"
 - Removed Swagger specific formats: "byte", "date", "double", "float", "int32" and "int64".

0.53  2015-09-13
 - Fix properties, patternProperties, additionalProperties interaction - patternProperty invalidates property
 - Fix validation for a keyword and instance SHOULD succeed when keywords does not match primitive type
 - Fix allOf with base schema - mismatch base schema
 - Fix checking for a boolean "required"

0.52  2015-09-05
 - Add guessing of schema type, based on other attributes
 - More strict on what is validated as "boolean"
 - Fix additionalItems are allowed by default
 - Fix additionalProperties allows a schema which should validate
 - Fix validating "enum"
 - Fix validating "array" against "additionalItems"
 - Fix bugs after running
   https://github.com/Relequestual/Test-JSON-Schema-Acceptance to validate

0.51  2015-08-24
 - Fix "$ref" pointing to a file on disk #1

0.50  2015-08-23
 - Fix missing namespace when registering new document
 - Made cache_dir() public
 - Bundled spec for json-schema and swagger

0.49  2015-08-23
 - Fix loading schema from files

0.48  2015-08-22
 - Merged core functionality from Swagger2 and Swagger2::SchemaValidator
   into this module, JSON::Validator
   See https://metacpan.org/source/JHTHORSEN/Swagger2-0.47/Changes for
   previous Changes (<=0.47)
 - Fix coercing collectionFormat strings into integers and numbers
 - Add support for reading schemas from __DATA__ section