Changes for version 4.11 - 2021-01-24

  • Add JSON::Validator::Schema::OpenAPIv2
    • Extends JSON::Validator::Schema::Draft4
    • Can validate OpenAPIv2 API specifiation
    • Can validate HTTP request and response
    • Can validate "Accept" and "Content-Type"
    • Can handle "discriminator"
    • Can handle "readOnly" parameters
    • Can handle collectionFormat
    • Can handle default values for parameters
    • Can convert specifiation with invalid "$ref" into a valid OpenAPIv2 specifiation
    • Will coerce query parameters and headers into arrays if needed
  • Add JSON::Validator::Schema::OpenAPIv3
    • Extends JSON::Validator::Schema::Draft201909
    • Can validate OpenAPIv3 API specifiation
    • Can validate HTTP request and response
    • Can validate "Accept" and "Content-Type"
    • Can handle "discriminator"
    • Can handle "nullable" parameters
    • Can handle "readOnly" parameters
    • Can handle "style" and "explode" for arrays and objects parameters
    • Can handle "writeOnly" parameters
    • Can handle default values for parameters
    • Will coerce query parameters and headers into arrays if needed
  • Add negotiate_content_type() utility function
  • Fix t/load-file.t on Windows #234
  • Fix not checking if input schema is a file if it has a newline #223 #233 Contributor: David Cantrell
  • Improved error message when loading non-existing file #231

Modules

Validate data against a JSON schema
JSON::Validator error object
Functions for validating JSON schema formats
Joi validation sugar for JSON::Validator
JSON::Validator $ref representation
Base class for JSON::Validator schemas
JSON-Schema Draft 2019-09
JSON-Schema Draft 4
JSON-Schema Draft 6
JSON-Schema Draft 7
OpenAPI version 2 / Swagger
Load and caching JSON schemas
Utility functions for JSON::Validator